Skip to content

Commit 8d0d210

Browse files
committed
fix: the way to call sub workflow
1 parent d47ba0b commit 8d0d210

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,14 @@ jobs:
3838
- uses: actions/setup-python@v5
3939
with:
4040
python-version: 3.x
41-
- name: Run tests
42-
uses: ./.github/workflows/_test.yml
43-
with:
44-
platform: ${{ matrix.platform.runner }}
4541
- name: Build wheels
4642
uses: PyO3/maturin-action@v1
4743
with:
4844
target: ${{ matrix.platform.target }}
4945
args: --release --out dist --find-interpreter
5046
sccache: 'true'
5147
manylinux: auto
52-
container: ${{ matrix.platform.container }}
48+
container: ${{ matrix.platform.container }}
49+
test:
50+
name: Run test
51+
uses: ./.github/workflows/_test.yml

.github/workflows/_test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@ name: Run Tests
22

33
on:
44
workflow_call:
5-
inputs:
6-
platform:
7-
required: true
8-
type: string
95

106
jobs:
117
rust:
128
strategy:
139
matrix:
1410
python-version: [3.11, 3.13]
15-
runs-on: ${{ inputs.platform }}
11+
platform: [ubuntu-latest, macos-latest]
12+
runs-on: ${{ matrix.platform }}
1613
steps:
1714
- uses: actions/checkout@v4
1815

0 commit comments

Comments
 (0)