Skip to content

Set up hatch for test matrix #7

Set up hatch for test matrix

Set up hatch for test matrix #7

Workflow file for this run

name: Python CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, 3.10, 3.11, 3.12]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install '.[dev]'
- name: Install Hatch
run: pip install --upgrade hatch
- name: Run tests
run: hatch run +py=${{ matrix.python-version }} test:cov