Skip to content

Commit 487c742

Browse files
authored
Merge pull request RustPython#1720 from palaviv/split-github-actions
Split rust test and snippets in github actions
2 parents 3fb6fb8 + c9227cd commit 487c742

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: CI
77

88
jobs:
99
rust_tests:
10-
name: Run tests
10+
name: Run rust tests
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
@@ -18,16 +18,29 @@ jobs:
1818
- name: Convert symlinks to hardlink (windows only)
1919
run: powershell.exe scripts/symlinks-to-hardlinks.ps1
2020
if: matrix.os == 'windows-latest'
21-
- name: build rustpython
22-
uses: actions-rs/cargo@v1
23-
with:
24-
command: build
25-
args: --verbose --all
2621
- name: run rust tests
2722
uses: actions-rs/cargo@v1
2823
with:
2924
command: test
3025
args: --verbose --all
26+
27+
snippets:
28+
name: Run snippets tests
29+
runs-on: ${{ matrix.os }}
30+
strategy:
31+
matrix:
32+
os: [macos-latest, ubuntu-latest, windows-latest]
33+
fail-fast: false
34+
steps:
35+
- uses: actions/checkout@master
36+
- name: Convert symlinks to hardlink (windows only)
37+
run: powershell.exe scripts/symlinks-to-hardlinks.ps1
38+
if: matrix.os == 'windows-latest'
39+
- name: build rustpython
40+
uses: actions-rs/cargo@v1
41+
with:
42+
command: build
43+
args: --release --verbose --all
3144
- uses: actions/setup-python@v1
3245
with:
3346
python-version: 3.6

0 commit comments

Comments
 (0)