MNT: Resurrect tox config to cover dev workflows and CI checks #804
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: Miscellaneous checks | |
# This file runs doctests on the documentation and style checks | |
on: | |
push: | |
branches: | |
- master | |
- maint/* | |
pull_request: | |
branches: | |
- master | |
- maint/* | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
misc: | |
runs-on: 'ubuntu-latest' | |
continue-on-error: true | |
strategy: | |
matrix: | |
check: ['style', 'doctest', 'typecheck'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3 | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Show tox config | |
run: pipx run tox c | |
- name: Show tox config (this call) | |
run: pipx run tox c -e ${{ matrix.check }} | |
- name: Run check | |
run: pipx run tox -e ${{ matrix.check }} |