Skip to content

Commit 1fd9c7f

Browse files
committed
Split Linux and Windows workflows
Signed-off-by: Mats Wichmann <[email protected]>
1 parent c34a34e commit 1fd9c7f

File tree

2 files changed

+48
-10
lines changed

2 files changed

+48
-10
lines changed

.github/workflows/runtest-win.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Full Test Suite on Windows
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
branches: [ master ]
10+
pull_request:
11+
branches: [ master ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
jobs:
17+
runtest-win32:
18+
runs-on: windows-latest
19+
steps:
20+
- uses: actions/[email protected]
21+
22+
- name: Set up Python 3.12
23+
uses: actions/[email protected]
24+
with:
25+
python-version: '3.12'
26+
27+
- name: Install dependencies including ninja
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install -r requirements-dev.txt
31+
32+
- name: runtest
33+
run: |
34+
python runtest.py --all --time --jobs=4
35+
36+
- name: Archive Failed tests
37+
uses: actions/[email protected]
38+
with:
39+
name: windows-failed-tests
40+
path: |
41+
failed_tests.log

.github/workflows/runtest.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: Full Test Suite
3+
name: Full Test Suite on Linux
44

55
# Controls when the workflow will run
66
on:
@@ -19,17 +19,19 @@ jobs:
1919
runtest:
2020
strategy:
2121
matrix:
22-
os: ['ubuntu-24.04', 'windows-latest']
22+
os: ['ubuntu-22.04', 'ubuntu-24.04']
2323

24-
# The type of runner that the job will run on
2524
runs-on: ${{ matrix.os }}
2625

27-
# Steps represent a sequence of tasks that will be executed as part of the job
2826
steps:
2927
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3028
- uses: actions/[email protected]
3129

32-
# Defaults are: 22.04 - 3.10, 24.04 - 3.12, windows-latest 3.9
30+
- name: Install Ubuntu packages $${matrix.os}}
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get install libtirpc-dev
34+
3335
- name: Set up Python 3.12 ${{ matrix.os }}
3436
uses: actions/[email protected]
3537
with:
@@ -41,11 +43,6 @@ jobs:
4143
python -m pip install -r requirements-dev.txt
4244
# sudo apt-get update
4345
44-
- name: Install Ubuntu packages ${{ 'ubuntu-24.04' }}
45-
run: |
46-
sudo apt-get update
47-
sudo apt-get install libtirpc-dev
48-
4946
- name: runtest ${{ matrix.os }}
5047
run: |
5148
python runtest.py --all --time --jobs=4

0 commit comments

Comments
 (0)