File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,46 +10,31 @@ permissions:
1010 contents : read
1111
1212jobs :
13- prepare :
13+ prepare-setuptools :
1414 runs-on : ubuntu-latest
1515 outputs :
1616 versions : ${{ steps.parser.outputs.versions || '[]' }}
1717 steps :
1818 - uses : actions/checkout@v6
19- with :
20- fetch-depth : 2
21-
22- - name : Check license line changed
23- id : check
24- run : |
25- if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
26- echo "changed=true" >> "$GITHUB_OUTPUT"
27- elif git diff HEAD~1 HEAD -- pyproject.toml | grep -q '^[+-].*license = "Apache-2.0"'; then
28- echo "changed=true" >> "$GITHUB_OUTPUT"
29- else
30- echo "changed=false" >> "$GITHUB_OUTPUT"
31- fi
32-
3319 - uses : actions/setup-python@v6
34- if : steps.check.outputs.changed == 'true'
3520 with :
3621 python-version : " 3.14"
3722
3823 - name : Generate version matrix
39- if : steps.check.outputs.changed == 'true'
4024 id : parser
4125 run : |
42- versions=$(python ci_loop_versions.py setuptools ">=77.0.1,<83")
26+ python -m pip install --upgrade requests packaging
27+ versions=$(python .github/scripts/ci_loop_versions.py setuptools ">=77.0.1,<83")
4328 echo "versions=$versions" >> "$GITHUB_OUTPUT"
4429
45- check :
46- needs : prepare
47- if : needs.prepare.outputs.versions != '[]'
30+ check-setuptools :
31+ needs : prepare-setuptools
32+ if : needs.prepare-setuptools .outputs.versions != '[]'
4833 runs-on : ubuntu-latest
4934 strategy :
5035 fail-fast : false
5136 matrix :
52- version : ${{ fromJSON(needs.prepare.outputs.versions) }}
37+ version : ${{ fromJSON(needs.prepare-setuptools .outputs.versions) }}
5338
5439 steps :
5540 - uses : actions/checkout@v6
Original file line number Diff line number Diff line change @@ -187,3 +187,46 @@ jobs:
187187 pip install pip pytest tabulate regex setuptools build wheel -U
188188 pip install -v .
189189 pytest --durations=0 tests/${{ matrix.test_script }}.py
190+
191+ prepare-setuptools :
192+ runs-on : ubuntu-latest
193+ outputs :
194+ versions : ${{ steps.parser.outputs.versions || '[]' }}
195+ steps :
196+ - uses : actions/checkout@v6
197+ - uses : actions/setup-python@v6
198+ with :
199+ python-version : " 3.14"
200+
201+ - name : Generate version matrix
202+ id : parser
203+ run : |
204+ python -m pip install --upgrade requests packaging
205+ versions=$(python .github/scripts/ci_loop_versions.py setuptools ">=77.0.1,<83")
206+ echo "versions=$versions" >> "$GITHUB_OUTPUT"
207+
208+ check-setuptools :
209+ needs : prepare-setuptools
210+ if : needs.prepare-setuptools.outputs.versions != '[]'
211+ runs-on : ubuntu-latest
212+ strategy :
213+ fail-fast : false
214+ matrix :
215+ version : ${{ fromJSON(needs.prepare-setuptools.outputs.versions) }}
216+
217+ steps :
218+ - uses : actions/checkout@v6
219+ - uses : actions/setup-python@v6
220+ with :
221+ python-version : " 3.14"
222+ cache : pip
223+
224+ - name : Install package with selected setuptools
225+ run : |
226+ python -m pip install --upgrade pip
227+ python -m pip install . "setuptools==${{ matrix.version }}"
228+
229+ - name : Show versions
230+ run : |
231+ python --version
232+ python -m pip show setuptools
You can’t perform that action at this time.
0 commit comments