Skip to content

Commit 878f822

Browse files
committed
Update gha workflow files.
1 parent 574c179 commit 878f822

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.github/workflows/Release PyPi.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@ name: Release PyPi
77

88
on:
99
push:
10-
branches:
11-
- main
12-
- master
1310
tags:
14-
- '*'
15-
pull_request:
16-
workflow_dispatch:
11+
- "v*" # Trigger on tags starting with "v"
1712

1813
permissions:
1914
contents: read
@@ -118,8 +113,6 @@ jobs:
118113
strategy:
119114
matrix:
120115
platform:
121-
- runner: macos-13
122-
target: x86_64
123116
- runner: macos-14
124117
target: aarch64
125118
python-version: ["3.11", "3.12", "3.13"]
@@ -172,7 +165,7 @@ jobs:
172165
- name: Generate artifact attestation
173166
uses: actions/attest-build-provenance@v2
174167
with:
175-
subject-path: 'wheels-*/*'
168+
subject-path: "wheels-*/*"
176169
- name: Publish to PyPI
177170
if: ${{ startsWith(github.ref, 'refs/tags/') }}
178171
uses: PyO3/maturin-action@v1

.github/workflows/Run test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Run tests
33
on:
44
pull_request:
55
types: [edited]
6+
push:
7+
branches:
8+
- main
9+
- master
610

711
jobs:
812
run-tests:
@@ -14,7 +18,7 @@ jobs:
1418
node-version: 16
1519
- uses: actions/setup-python@v3
1620
with:
17-
python-version: '3.13'
21+
python-version: "3.13"
1822
- uses: actions-rust-lang/setup-rust-toolchain@v1
1923
with:
2024
components: clippy, rustfmt

0 commit comments

Comments
 (0)