π Version 2.1.0 #41
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: ci | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ci-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
quality: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- name: Install Hatch | |
run: | | |
pip install --upgrade pip | |
pip install --upgrade hatch | |
- name: Code quality checks | |
run: hatch run lint:all | |
test: | |
strategy: | |
matrix: | |
python-version: | |
- "3.8.x" | |
- "3.9.x" | |
- "3.10.x" | |
os: | |
- ubuntu-20.04 | |
# - windows-latest | |
# - macos-latest | |
runs-on: ${{ matrix.os }} | |
name: Python ${{ matrix.python-version }} test on ${{ matrix.os }} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up python | |
id: setup-python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Hatch | |
run: pip install --upgrade hatch | |
- name: Run tests | |
run: | | |
hatch run test |