Skip to content

Commit

Permalink
Add optional dependency test
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Sep 21, 2023
1 parent 51ff19e commit 19f6133
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ jobs:
pip install py
# END: Temp fix
pip install flake8 pytest pytest-cov pytest-pycodestyle fault>=3.1.1
pip install coreir # test optional dependency
pip install kratos # test optional dependency
python setup.py install
- name: Test with pytest
run: |
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/linux-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,19 @@ jobs:
# END: Temp fix
pip install .
pip install flake8 pytest pytest-cov pytest-pycodestyle fault>=3.1.1
pip install coreir # test optional dependency
pip install kratos # test optional dependency
- name: Test with pytest
run: |
py.test --cov magma -v --cov-report term-missing tests
pycodestyle magma/
- name: Test optional dependencies
run: |
# TODO(leonardt): Ideally we only run specific tests
pip install kratos # test optional dependency
pip install coreir # test optional dependency
py.test tests
- name: Smoke test package
run: |
pushd /tmp
Expand Down

0 comments on commit 19f6133

Please sign in to comment.