Repository navigation
113 lines (95 loc) · 2.96 KB
/
Copy pathpr.yaml
File metadata and controls
113 lines (95 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Pull Request CI
on:
pull_request:
permissions:
contents: read
concurrency:
group: pr-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
unit:
name: Unit
uses: CCPBioSim/.github/.github/workflows/ci-test-python.yaml@f4cec1ba490b4461bfbcfd6362a8587678908a7d # 0.12.0
permissions:
contents: read
checks: write
statuses: write
pull-requests: write
with:
package: CodeEntropy
lowest-dependencies-check: true
test-path: tests/unit
os: '["ubuntu-24.04", "macos-26", "windows-2025-vs2026"]'
timeout-minutes: 25
discover-systems:
name: Discover regression systems
runs-on: ubuntu-26.04
outputs:
systems: ${{ steps.set-systems.outputs.systems }}
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Set up Python 3.14
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: "3.15"
- name: Install testing dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[testing]
- name: Discover systems
id: set-systems
run: |
SYSTEMS=$(python -m tests.regression.list_systems)
echo "systems=$SYSTEMS" >> "$GITHUB_OUTPUT"
regression-quick:
name: Regression fast • ${{ matrix.system }}
needs: discover-systems
runs-on: ubuntu-26.04
timeout-minutes: 35
strategy:
fail-fast: false
matrix:
system: ${{ fromJson(needs.discover-systems.outputs.systems) }}
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Set up Python 3.14
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: "3.15"
- name: Install testing dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[testing]
- name: Run fast regression tests
run: |
python -m pytest tests/regression \
-m "not slow" \
--system "${{ matrix.system }}" \
-vv \
--durations=20
- name: Upload artifacts on failure
if: failure()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: quick-regression-failure-${{ matrix.system }}
path: |
.testdata/**
/tmp/pytest-of-*/pytest-*/**
docs:
name: Docs
needs: unit
uses: CCPBioSim/.github/.github/workflows/ci-docs.yaml@f4cec1ba490b4461bfbcfd6362a8587678908a7d # 0.12.0
permissions:
contents: read
with:
timeout-minutes: 25
pre-commit:
name: Pre-commit
needs: unit
uses: CCPBioSim/.github/.github/workflows/ci-pre-commit.yaml@f4cec1ba490b4461bfbcfd6362a8587678908a7d # 0.12.0
permissions:
contents: read
with:
timeout-minutes: 15