Oct21 refactor #346
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: unit-tests | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: python-3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: linting checks | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 flake8-docstrings isort | |
sh hooks/pre-commit | |
- name: install project dependencies | |
run: | | |
pip install -e . | |
- name: unit tests | |
run: | | |
pytest --cov=crystal_diffusion -m "not not_on_github" | |
- name: doc-creation-test | |
run: | | |
./tests/test_docs/run.sh |