Fix publish pipeline_ (#26) #111
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: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
tests: | |
name: CI for ${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
env: | |
USING_COVERAGE: "3.8,3.12" | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup uv | |
uses: astral-sh/setup-uv@v2 | |
with: | |
enable-cache: true | |
uv-version: "0.4.9" | |
- name: Run tests for ${{ matrix.python-version }} | |
run: | | |
uv venv .venv | |
uv pip install ".[dev]" | |
uv run pre-commit run --all | |
uv run pytest |