Repository navigation
101 lines (96 loc) · 3.56 KB
/
Copy pathqualify-library.yml
File metadata and controls
101 lines (96 loc) · 3.56 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
name: Shared library qualification
on:
workflow_call:
inputs:
import-package:
description: Public Python import package
required: true
type: string
prerelease-test-paths:
description: JSON array of core test paths to run on the next CPython prerelease
required: false
type: string
default: '["tests"]'
prerelease-exception:
description: Approved ecosystem exception id that replaces prerelease qualification
required: false
type: string
default: ""
permissions:
contents: read
jobs:
qualify:
name: ${{ matrix.os }} / Python ${{ matrix.python }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: ml4t/ecosystem
ref: 728da8e1175c4ad55c5feb6365d195a4f6a045c0
path: .ecosystem
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
version: "0.10.9"
enable-cache: true
- run: >-
uv run --project .ecosystem python .ecosystem/scripts/qualification.py
--python ${{ matrix.python }} --import-package ${{ inputs.import-package }}
prerelease:
name: ${{ matrix.os }} / Python 3.15 prerelease
if: ${{ inputs.prerelease-exception == '' }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.15.0-rc.1"
allow-prereleases: true
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: ml4t/ecosystem
ref: 728da8e1175c4ad55c5feb6365d195a4f6a045c0
path: .ecosystem
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
version: "0.10.9"
enable-cache: true
- run: >-
uv run --project .ecosystem python .ecosystem/scripts/qualification.py
--python 3.15.0rc1 --import-package ${{ inputs.import-package }} --prerelease
--preinstalled-python
env:
ML4T_PRERELEASE_TESTS_JSON: ${{ inputs.prerelease-test-paths }}
prerelease-exception:
name: Validate Python 3.15 exception
if: ${{ inputs.prerelease-exception != '' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
path: candidate
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
repository: ml4t/ecosystem
ref: 728da8e1175c4ad55c5feb6365d195a4f6a045c0
path: .ecosystem
- uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
version: "0.10.9"
enable-cache: true
- run: >-
uv run --project .ecosystem python .ecosystem/scripts/validate_exception.py
--config .ecosystem/config/libraries.toml
--exception-id ${{ inputs.prerelease-exception }}
--repository ${{ github.repository }}
--package-root candidate