Skip to content

Commit

Permalink
polish tests and install pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
austinorr committed Feb 25, 2022
1 parent c4d433c commit 54e15f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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

Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ install_requires =
matplotlib>=3.2.0
graphviz
pydot
pydantic>=1.8.0

[options.extras_require]
app =
Expand Down

0 comments on commit 54e15f9

Please sign in to comment.