Repository navigation
93 lines (93 loc) · 2.89 KB
/
Copy pathci.yml
File metadata and controls
93 lines (93 loc) · 2.89 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
name: Python installed wheels
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: python-ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
native:
name: Native stage (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.95.0'
- name: Build the pinned public native library once
run: python scripts/ci.py build-native
- uses: actions/upload-artifact@v4
with:
name: native-${{ matrix.os }}
include-hidden-files: true
path: .native/*
if-no-files-found: error
retention-days: 3
- uses: actions/upload-artifact@v4
if: always()
with:
name: native-evidence-${{ matrix.os }}
path: .ci-evidence/*
include-hidden-files: true
if-no-files-found: warn
retention-days: 3
installed:
name: Installed wheel (${{ matrix.os }}, Python ${{ matrix.python }})
needs: native
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']
include:
- os: macos-latest
python: '3.15'
- os: windows-latest
python: '3.15'
- os: windows-latest
python: '3.10'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- uses: actions/download-artifact@v4
with:
name: native-${{ matrix.os }}
path: .native
- name: Build the wheel and install it in a fresh environment
run: python scripts/ci.py install-wheel
- name: Check out the pinned shared corpus
uses: actions/checkout@v4
with:
repository: unitsml/asciiunits-testsuite
# Same commit as tests/corpus-pin.json; the test checks the bytes.
ref: 3f835ba8ea441de0c1081a4cd6a53ed52959f32c
path: asciiunits-testsuite
persist-credentials: false
- name: Test every repository fixture against the installed wheel
env:
ASCIIUNITS_TESTSUITE: ${{ github.workspace }}/asciiunits-testsuite
run: python scripts/ci.py test-installed
- uses: actions/upload-artifact@v4
if: always()
with:
name: evidence-${{ matrix.os }}-${{ matrix.python }}
include-hidden-files: true
path: .ci-evidence/*
if-no-files-found: warn
retention-days: 7