diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a910c2b8..b51fa259 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.9 - name: Install Deps run: pip install -r nereid/requirements.txt -r nereid/requirements_tests.txt - name: Run Tests @@ -36,11 +36,11 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.9 - name: Install nereid as library run: | - pip install . - pip install -r nereid/requirements_tests.txt + pip install . + pip install pytest - name: Run Tests run: pytest nereid/nereid/tests/test_src -xv @@ -64,7 +64,7 @@ jobs: - name: Run Edge Tests continue-on-error: true run: | - pytest nereid/nereid/tests/test_src -xv + pytest nereid/nereid/tests -xv - name: Exit run: exit 0 @@ -80,7 +80,9 @@ jobs: bash ./scripts/build_dev.sh docker-compose up -d nereid-tests - name: run tests - run: docker-compose exec -T nereid-tests coverage run -m pytest -xv + run: | + docker compose exec -T nereid-tests coverage run --branch -m pytest nereid/tests -xs + docker compose exec -T nereid-tests coverage run -a --branch -m pytest nereid/tests/test_api -xs --async - name: coverage run: | docker-compose exec -T nereid-tests coverage report -mi diff --git a/setup.cfg b/setup.cfg index 8ec0c7a3..274c3eee 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,6 +32,7 @@ install_requires = matplotlib>=3.2.0 graphviz pydot + pydantic>=1.8.0 [options.extras_require] app =