pebaryan
Improve open source project readiness
3183da7
Raw
History Blame Contribute Delete
728 Bytes
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package
run: python -m pip install -U pip && python -m pip install -e ".[dev]"
- name: Lint
run: ruff check .
- name: Test
run: pytest -q