Skip to content

Commit 7c43dab

Browse files
authored
Tidying of workflows (#46)
Some minor cleaning up of workflows.
1 parent 333942b commit 7c43dab

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/on-commit.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
# Run tests and style checks on each commit to an open pull request.
2-
31
name: on-commit
42

53
on: [pull_request, workflow_dispatch]
64

75
jobs:
86
test:
97
runs-on: ubuntu-latest
10-
118
strategy:
129
matrix:
1310
python-version: ['3.10', '3.12', '3.13', '3.14', '3.14t', 'pypy3.11']
@@ -17,10 +14,13 @@ jobs:
1714
- uses: astral-sh/setup-uv@v6
1815
with:
1916
version: "0.9.7"
17+
python-version: ${{ matrix.python-version }}
18+
- name: Set up environment
19+
run: uv sync --locked
2020
- name: Check types with mypy
21-
run: uv run --python ${{ matrix.python-version }} mypy
21+
run: uv run mypy
2222
- name: Test with pytest
23-
run: uv run --python ${{ matrix.python-version }} pytest
23+
run: uv run pytest
2424

2525
style:
2626
runs-on: ubuntu-latest

.github/workflows/on-release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ on:
77

88
jobs:
99
build-and-upload:
10-
name: Build and upload release to PyPI
1110
runs-on: ubuntu-latest
1211
environment: release
1312
permissions:
1413
id-token: write
1514

1615
steps:
1716
- uses: actions/checkout@v5
18-
with:
19-
fetch-depth: 0
2017
- uses: astral-sh/setup-uv@v6
2118
with:
2219
version: "0.9.7"

0 commit comments

Comments
 (0)