Skip to content

Commit 83d1f31

Browse files
authored
feat: split CI into normal and slow (#38)
1 parent 2c74dfd commit 83d1f31

File tree

2 files changed

+44
-12
lines changed

2 files changed

+44
-12
lines changed

.github/workflows/ci-slow.yaml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI-slow
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
unit-tests:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
#max-parallel: 1
11+
matrix:
12+
include:
13+
- python-version: '3.11'
14+
os: macos-latest
15+
EXTRA: true
16+
- python-version: '3.12'
17+
os: macos-latest
18+
EXTRA: true
19+
- python-version: '3.7'
20+
os: windows-latest
21+
EXTRA: true
22+
- python-version: '3.12'
23+
os: windows-latest
24+
EXTRA: true
25+
steps:
26+
- name: checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
34+
- name: Install setuptools on python 3.12+
35+
if: ${{ matrix.python-version >= '3.12' }}
36+
run: |
37+
pip install setuptools
38+
39+
- name: Install cdx_toolkit
40+
run: pip install .[test]
41+
42+
- name: Run tests
43+
run: |
44+
make test_coverage

.github/workflows/ci.yaml

-12
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,6 @@ jobs:
2525
EXTRA: true
2626
env:
2727
LOGLEVEL=DEBUG
28-
- python-version: '3.11'
29-
os: macos-latest
30-
EXTRA: true
31-
- python-version: '3.12'
32-
os: macos-latest
33-
EXTRA: true
34-
- python-version: '3.7'
35-
os: windows-latest
36-
EXTRA: true
37-
- python-version: '3.12'
38-
os: windows-latest
39-
EXTRA: true
4028
- python-version: '3.7'
4129
os: ubuntu-20.04 # oldest version on github actions
4230
EXTRA: true

0 commit comments

Comments
 (0)