Skip to content

CI

CI #973

Workflow file for this run

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