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 72ec4d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,16 @@ 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 ..
pip install pytest
python -Wa -m pytest --pyargs crystals
- name: Build documentation
run: |
Expand Down

0 comments on commit 72ec4d5

Please sign in to comment.