| 1 |
name: CI |
| 2 |
on: [push, pull_request] |
| 3 |
jobs: |
| 4 |
build: |
| 5 |
runs-on: ${{ matrix.os }} |
| 6 |
strategy: |
| 7 |
matrix: |
| 8 |
os: |
| 9 |
- ubuntu-latest |
| 10 |
- macos-latest |
| 11 |
- windows-latest |
| 12 |
python-version: |
| 13 |
- '3.8' |
| 14 |
- '3.9' |
| 15 |
- '3.10' |
| 16 |
- '3.11' |
| 17 |
- '3.12' |
| 18 |
steps: |
| 19 |
- uses: actions/checkout@v4 |
| 20 |
- name: Install Poetry |
| 21 |
run: pipx install poetry |
| 22 |
- name: Set up Python |
| 23 |
uses: actions/setup-python@v5 |
| 24 |
with: |
| 25 |
python-version: ${{ matrix.python-version }} |
| 26 |
cache: poetry |
| 27 |
- name: Run CI |
| 28 |
run: | |
| 29 |
poetry env use ${{ matrix.python-version }} |
| 30 |
poetry install --with dev |
| 31 |
poetry run flake8 |
| 32 |
poetry run pytest --cov |