Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/on-commit.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# Run tests and style checks on each commit to an open pull request.

name: on-commit

on: [pull_request, workflow_dispatch]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.10', '3.12', '3.13', '3.14', '3.14t', 'pypy3.11']
Expand All @@ -17,10 +14,13 @@ jobs:
- uses: astral-sh/setup-uv@v6
with:
version: "0.9.7"
python-version: ${{ matrix.python-version }}
- name: Set up environment
run: uv sync --locked
- name: Check types with mypy
run: uv run --python ${{ matrix.python-version }} mypy
run: uv run mypy
- name: Test with pytest
run: uv run --python ${{ matrix.python-version }} pytest
run: uv run pytest

style:
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ on:

jobs:
build-and-upload:
name: Build and upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write

steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v6
with:
version: "0.9.7"
Expand Down