Skip to content

Commit

Permalink
CI: test the package as-installed
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Dec 15, 2020
1 parent 916ef63 commit ea1f009
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,15 @@ jobs:
pip install -r requirements.txt
# Note the use of the -Wa flag to show DeprecationWarnings
# We test the package as-installed. Pytest is better than unittest at finding
# unittest tests when the package is installed.
- name: Unit tests
env:
MATERIALS_PROJECT_API_KEY: ${{ secrets.MATERIALS_PROJECT_API_KEY }}
run: |
python -Wa -m unittest discover --verbose --buffer
python setup.py install
cd ..
python -Wa -m pytest --pyargs crystals
- name: Build documentation
run: |
Expand Down

0 comments on commit ea1f009

Please sign in to comment.