Skip to content

Migrate Unit tests from nosetests to Pytest and enable test checks #54

Migrate Unit tests from nosetests to Pytest and enable test checks

Migrate Unit tests from nosetests to Pytest and enable test checks #54

Workflow file for this run

name: Python Tests
on:
pull_request:
branches:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: [3.6, 3.7, 3.8, 3.9, 3.10]

Check failure on line 14 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / Python Tests

Invalid workflow file

The workflow is not valid. .github/workflows/main.yaml (Line: 14, Col: 27): A sequence was not expected
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Assumes you have a requirements.txt
pip install -r requirements_dev.txt
- name: Run tests
run: |
PYTHONPATH=$(pwd) pytest tests/unit_tests