-
Notifications
You must be signed in to change notification settings - Fork 53
61 lines (52 loc) · 1.6 KB
/
Copy pathci.yml
File metadata and controls
61 lines (52 loc) · 1.6 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
name: CI
on:
pull_request:
merge_group:
types: [checks_requested]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.merge_group.head_ref || github.ref }}
cancel-in-progress: true
jobs:
# Build the test matrix dynamically from `tox -l` so adding a
# new tox env automatically extends CI without editing workflow YAML.
prepare:
name: prepare-matrix
runs-on: cncf-ubuntu-2-8-x86
timeout-minutes: 10
outputs:
test_matrix: ${{ steps.gen.outputs.test_matrix }}
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python 3.14
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.14"
- name: Set up uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- name: Generate matrix JSON from tox -l
id: gen
run: |
uvx --with tox-uv tox -l | python scripts/tox_matrix.py >> "$GITHUB_OUTPUT"
misc:
uses: ./.github/workflows/misc.yml
tests:
needs: prepare
uses: ./.github/workflows/test.yml
with:
matrix: ${{ needs.prepare.outputs.test_matrix }}
check:
if: always()
needs:
- prepare
- misc
- tests
runs-on: cncf-ubuntu-2-8-x86
steps:
- if: |
needs.prepare.result != 'success' ||
needs.misc.result != 'success' ||
needs.tests.result != 'success'
run: exit 1 # fail