-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathsetuptools_compatibility_reusable.yml
More file actions
83 lines (71 loc) · 2.19 KB
/
setuptools_compatibility_reusable.yml
File metadata and controls
83 lines (71 loc) · 2.19 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
name: Setuptools Compatibility Reusable
on:
workflow_call:
inputs:
repo:
description: "GitHub repo {owner}/{repo}"
required: false
default: ""
type: string
ref:
description: "GitHub ref: Branch, Tag or Commit SHA"
required: false
default: ""
type: string
pr_number:
description: "PR Number"
required: false
default: 0
type: number
permissions:
contents: read
jobs:
prepare-setuptools:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.parser.outputs.versions || '[]' }}
steps:
- uses: actions/checkout@v6
with:
repository: ${{ inputs.repo || github.repository }}
ref: ${{ inputs.ref || github.ref }}
- name: Prepare checkout
run: |
.github/scripts/ci_prepare_checkout.sh "${{ inputs.pr_number }}"
- uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Generate version matrix
id: parser
run: |
python -m pip install --upgrade requests packaging pyyaml
versions=$(python .github/scripts/ci_workflow.py loop-versions setuptools ">=77.0.1,<83")
echo "versions=$versions" >> "$GITHUB_OUTPUT"
check-setuptools:
needs: prepare-setuptools
if: needs.prepare-setuptools.outputs.versions != '[]'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.prepare-setuptools.outputs.versions) }}
steps:
- uses: actions/checkout@v6
with:
repository: ${{ inputs.repo || github.repository }}
ref: ${{ inputs.ref || github.ref }}
- name: Prepare checkout
run: |
.github/scripts/ci_prepare_checkout.sh "${{ inputs.pr_number }}"
- uses: actions/setup-python@v6
with:
python-version: "3.14"
cache: pip
- name: Install package with selected setuptools
run: |
python -m pip install --upgrade pip
python -m pip install . "setuptools==${{ matrix.version }}"
- name: Show versions
run: |
python --version
python -m pip show setuptools