wip #1135
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: CI | |
on: | |
push: | |
pull_request: | |
# Run CI once a week even without code changes to ensure tests pass with | |
# updated dependencies. | |
schedule: | |
- cron: '0 0 * * 5' | |
# Allow triggering a CI run from the web UI. | |
workflow_dispatch: | |
jobs: | |
Format: | |
name: π Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§° Checkout | |
uses: actions/checkout@v2 | |
- name: π Setup Python ${{ matrix.pyver }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: π¦ Run pre-commit Action | |
uses: pre-commit/action@v2.0.0 | |
Build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- { icon: π§, name: ubuntu } | |
#- { icon: π, name: macos } | |
#- { icon: π§, name: windows } | |
pyver: | |
- '3.7' | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
runs-on: ${{ matrix.os.name }}-latest | |
name: ${{ matrix.os.icon }} ${{ matrix.os.name }} | ${{ matrix.pyver }} | |
steps: | |
- name: π§° Repository Checkout | |
uses: actions/checkout@v2 | |
- name: π Set up Python ${{ matrix.pyver }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.pyver }} | |
- name: π οΈ Install dependencies | |
run: | | |
python -c "import sys; print(sys.version)" | |
pip install tox | |
- name: π§ Build package and run tests with tox | |
run: tox -e py |