Skip to content

Commit bc3ffab

Browse files
committed
chore: update github actions
1 parent dc70776 commit bc3ffab

File tree

2 files changed

+59
-59
lines changed

2 files changed

+59
-59
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: Publish to PyPI
88
on:
99
push:
1010
tags:
11-
- '*'
11+
- "*"
1212

1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
@@ -35,16 +35,16 @@ jobs:
3535
- runner: ubuntu-latest
3636
target: ppc64le
3737
steps:
38-
- uses: actions/checkout@v4
39-
- uses: actions/setup-python@v5
38+
- uses: actions/checkout@v5
39+
- uses: actions/setup-python@v6
4040
with:
4141
python-version: "3.14"
4242
- name: Build wheels
4343
uses: PyO3/maturin-action@v1
4444
with:
4545
target: ${{ matrix.platform.target }}
4646
args: --release --out dist --find-interpreter
47-
sccache: 'true'
47+
sccache: "true"
4848
manylinux: auto
4949
- name: Upload wheels
5050
uses: actions/upload-artifact@v4
@@ -66,16 +66,16 @@ jobs:
6666
- runner: ubuntu-latest
6767
target: armv7
6868
steps:
69-
- uses: actions/checkout@v4
70-
- uses: actions/setup-python@v5
69+
- uses: actions/checkout@v5
70+
- uses: actions/setup-python@v6
7171
with:
7272
python-version: "3.14"
7373
- name: Build wheels
7474
uses: PyO3/maturin-action@v1
7575
with:
7676
target: ${{ matrix.platform.target }}
7777
args: --release --out dist --find-interpreter
78-
sccache: 'true'
78+
sccache: "true"
7979
manylinux: musllinux_1_2
8080
- name: Upload wheels
8181
uses: actions/upload-artifact@v4
@@ -93,8 +93,8 @@ jobs:
9393
- runner: windows-latest
9494
target: x86
9595
steps:
96-
- uses: actions/checkout@v4
97-
- uses: actions/setup-python@v5
96+
- uses: actions/checkout@v5
97+
- uses: actions/setup-python@v6
9898
with:
9999
python-version: "3.14"
100100
architecture: ${{ matrix.platform.target }}
@@ -103,7 +103,7 @@ jobs:
103103
with:
104104
target: ${{ matrix.platform.target }}
105105
args: --release --out dist --find-interpreter
106-
sccache: 'true'
106+
sccache: "true"
107107
- name: Upload wheels
108108
uses: actions/upload-artifact@v4
109109
with:
@@ -120,16 +120,16 @@ jobs:
120120
- runner: macos-14
121121
target: aarch64
122122
steps:
123-
- uses: actions/checkout@v4
124-
- uses: actions/setup-python@v5
123+
- uses: actions/checkout@v5
124+
- uses: actions/setup-python@v6
125125
with:
126126
python-version: "3.14"
127127
- name: Build wheels
128128
uses: PyO3/maturin-action@v1
129129
with:
130130
target: ${{ matrix.platform.target }}
131131
args: --release --out dist --find-interpreter
132-
sccache: 'true'
132+
sccache: "true"
133133
- name: Upload wheels
134134
uses: actions/upload-artifact@v4
135135
with:
@@ -139,7 +139,7 @@ jobs:
139139
sdist:
140140
runs-on: ubuntu-latest
141141
steps:
142-
- uses: actions/checkout@v4
142+
- uses: actions/checkout@v5
143143
- name: Build sdist
144144
uses: PyO3/maturin-action@v1
145145
with:
@@ -164,11 +164,11 @@ jobs:
164164
# Used to generate artifact attestation
165165
attestations: write
166166
steps:
167-
- uses: actions/download-artifact@v4
167+
- uses: actions/download-artifact@v5
168168
- name: Generate artifact attestation
169-
uses: actions/attest-build-provenance@v2
169+
uses: actions/attest-build-provenance@v3
170170
with:
171-
subject-path: 'wheels-*/*'
171+
subject-path: "wheels-*/*"
172172
- name: Publish to PyPI
173173
if: ${{ startsWith(github.ref, 'refs/tags/') }}
174174
uses: PyO3/maturin-action@v1

.github/workflows/tests.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Run tests
33
on:
44
push:
55
branches:
6-
- 'main'
7-
- 'dev'
6+
- "main"
7+
- "dev"
88
pull_request:
99
workflow_dispatch:
1010

@@ -13,46 +13,46 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
1717
os: [ubuntu-latest, windows-latest]
1818

1919
steps:
20-
- uses: actions/checkout@v4
21-
22-
# First check Rust tests
23-
- name: Install Rust toolchain
24-
uses: dtolnay/rust-toolchain@stable
25-
with:
26-
toolchain: stable
27-
components: rustfmt, clippy
28-
29-
- name: Cache Rust dependencies
30-
uses: Swatinem/rust-cache@v2
31-
32-
- name: Run Rust tests
33-
run: cargo test
34-
35-
# After Rust tests pass, run Python tests next
36-
- name: Set up Python ${{ matrix.python-version }}
37-
uses: actions/setup-python@v5
38-
with:
39-
python-version: ${{ matrix.python-version }}
40-
cache: "pip"
41-
42-
- name: Install Python dependencies
43-
run: |
44-
# NOTE: maturin requires a virtual environment to be active
45-
python -m venv .venv
46-
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
47-
python -m pip install --upgrade pip
48-
python -m pip install -r requirements-ci.txt
49-
50-
- name: Build Python package
51-
run: |
52-
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
53-
maturin develop
54-
55-
- name: Run Python tests
56-
run: |
57-
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
58-
pytest
20+
- uses: actions/checkout@v5
21+
22+
# First check Rust tests
23+
- name: Install Rust toolchain
24+
uses: dtolnay/rust-toolchain@stable
25+
with:
26+
toolchain: stable
27+
components: rustfmt, clippy
28+
29+
- name: Cache Rust dependencies
30+
uses: Swatinem/rust-cache@v2
31+
32+
- name: Run Rust tests
33+
run: cargo test
34+
35+
# After Rust tests pass, run Python tests next
36+
- name: Set up Python ${{ matrix.python-version }}
37+
uses: actions/setup-python@v6
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
cache: "pip"
41+
42+
- name: Install Python dependencies
43+
run: |
44+
# NOTE: maturin requires a virtual environment to be active
45+
python -m venv .venv
46+
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
47+
python -m pip install --upgrade pip
48+
python -m pip install -r requirements-ci.txt
49+
50+
- name: Build Python package
51+
run: |
52+
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
53+
maturin develop
54+
55+
- name: Run Python tests
56+
run: |
57+
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
58+
pytest

0 commit comments

Comments
 (0)