Bump actions/setup-python from 4 to 5 #20
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: Run tests | |
on: | |
push: | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ | |
'3.8', | |
'3.9', | |
'3.10', | |
] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
auto-update-conda: true | |
- run: make devinstall | |
- run: make unittests | |
flake: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- run: pip install flake8 flake8-isort pep8-naming | |
- run: make flaketest | |
docs: | |
if: github.ref == 'refs/heads/master' | |
needs: [tests, flake] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: '3.10' | |
auto-update-conda: true | |
- run: make devinstall | |
- run: make doctest | |
- uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: doc/_build/html | |
publish_branch: gh-pages | |
force_orphan: true |