66 # push:
77 # branches: [exec]
88 # paths-ignore:
9- # - 'constraints-*.txt'
9+ # - 'constraints-*_*-wsl .txt'
1010
1111jobs :
1212 pre-commit :
1313 runs-on : windows-2022
1414 strategy :
1515 matrix :
1616# python-version: [ "3.12" ]
17- python-version : [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
17+ python-version : [ "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]
1818 distribution : [ "Ubuntu-22.04", "Ubuntu-24.04" ]
1919 max-parallel : 1
2020 name : Pre-commit WSL python ${{ matrix.python-version }} dist ${{ matrix.distribution }}
4646 python3-openssl
4747 - name : Cache pyenv and pip in WSL
4848 id : cache-pyenv
49- uses : actions/cache@v4
49+ uses : actions/cache@v5
5050 with :
5151 path : |
5252 ~/.pyenv
9292 source .env/bin/activate
9393
9494 pip install --upgrade pip wheel
95- constraints_file="constraints-${{ matrix.python-version }}-wsl.txt"
95+ constraints_file="constraints-${{ matrix.python-version }}_${{ matrix.distribution }} -wsl.txt"
9696 regen_constraints=
9797 if [ -f "$constraints_file" ] ; then
9898 at="$(git --no-pager log -p -1 "--format=tformat:%at" --no-patch -- "$constraints_file")"
@@ -118,9 +118,9 @@ jobs:
118118 cd the_repo
119119 source .env/bin/activate
120120
121- pip install -r dev-requirements.txt -r mypy-requirements.txt -c constraints-${{ matrix.python-version }}-wsl.txt-relaxed
121+ pip install -r dev-requirements.txt -r mypy-requirements.txt -c constraints-${{ matrix.python-version }}_${{ matrix.distribution }} -wsl.txt-relaxed
122122# - name: MyPy cache
123- # uses: actions/cache@v4
123+ # uses: actions/cache@v5
124124# with:
125125# path: '.mypy_cache/[0-9]*'
126126# key: mypy-${{ matrix.python-version }}
@@ -140,18 +140,18 @@ jobs:
140140 source .env/bin/activate
141141
142142 pytest --cov=treecript
143- - uses : actions/upload-artifact@v4
143+ - uses : actions/upload-artifact@v6
144144 with :
145- name : wsl_pre-commit-${{ matrix.python-version }}- ${{ matrix.distribution }}
145+ name : wsl_pre-commit-${{ matrix.python-version }}_ ${{ matrix.distribution }}
146146 retention-days : 2
147- path : the_repo/constraints-${{ matrix.python-version }}-wsl- ${{ matrix.distribution }}.txt
147+ path : the_repo/constraints-${{ matrix.python-version }}_ ${{ matrix.distribution }}-wsl .txt
148148
149149 check_licences :
150150 runs-on : ubuntu-latest
151151 strategy :
152152 matrix :
153153# python-version: [ "3.12" ]
154- python-version : [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
154+ python-version : [ "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]
155155 distribution : [ "Ubuntu-22.04", "Ubuntu-24.04" ]
156156 name : Validate licences of gathered dependencies (WSL python ${{ matrix.python-version }} dist ${{ matrix.distribution }})
157157 needs :
@@ -160,17 +160,16 @@ jobs:
160160 - name : Get analysis timestamp
161161 id : timestamp
162162 run : echo "timestamp=$(date -Is)" >> "$GITHUB_OUTPUT"
163- - uses : actions/download-artifact@v5
163+ - uses : actions/download-artifact@v7
164164 id : download
165165 with :
166- name : wsl_pre-commit-${{matrix.python-version}}- ${{ matrix.distribution }}
166+ name : wsl_pre-commit-${{matrix.python-version}}_ ${{ matrix.distribution }}
167167 - name : Get transitive dependencies licences
168168 id : license_check_print_report
169- # uses: pilosus/action-pip-license-checker@v1.0.0
170169# continue-on-error: true
171170 uses : pilosus/action-pip-license-checker@v3.1.0
172171 with :
173- requirements : constraints-${{ matrix.python-version }}-wsl- ${{ matrix.distribution }}.txt
172+ requirements : constraints-${{ matrix.python-version }}_ ${{ matrix.distribution }}-wsl .txt
174173# - name: Check transitive dependencies licences
175174# id: license_check_report
176175# uses: pilosus/action-pip-license-checker@v3.1.0
@@ -193,21 +192,21 @@ jobs:
193192 - name : Get analysis timestamp
194193 id : timestamp
195194 run : echo "timestamp=$(date -Is)" >> "$GITHUB_OUTPUT"
196- - uses : actions/checkout@v5
197- - uses : actions/download-artifact@v5
195+ - uses : actions/checkout@v6
196+ - uses : actions/download-artifact@v7
198197 id : download
199198 with :
200- pattern : wsl_pre-commit-*
199+ pattern : wsl_pre-commit-*_*
201200 merge-multiple : true
202201 path : changes-dir
203202 - name : Move artifacts to their right place
204203 id : move
205204 run : |
206205 skip=true
207206 if [ -d "${{steps.download.outputs.download-path}}" ] ; then
208- for con in "${{steps.download.outputs.download-path}}"/constraints-*-wsl-* .txt ; do
207+ for con in "${{steps.download.outputs.download-path}}"/constraints-*_* -wsl.txt ; do
209208 case "$con" in
210- */constraints-\*-wsl-\* .txt)
209+ */constraints-\*_\*-wsl .txt)
211210 break
212211 ;;
213212 *)
@@ -220,12 +219,12 @@ jobs:
220219 echo "skip=$skip" >> "$GITHUB_OUTPUT"
221220 - name : Create Pull Request
222221 id : cpr
223- uses : peter-evans/create-pull-request@v7
222+ uses : peter-evans/create-pull-request@v8
224223 if : steps.move.outputs.skip == 'false'
225224 with :
226225 title : Updated WSL constraints (triggered on ${{ steps.timestamp.outputs.timestamp }} by ${{ github.sha }})
227226 branch : create-pull-request/patch-wsl_constraints
228- add-paths : constraints-*-wsl-* .txt
227+ add-paths : constraints-*_* -wsl.txt
229228 delete-branch : true
230229 commit-message : " [create-pull-request] Automatically commit updated contents (constraints WSL)"
231230 - name : Check outputs
0 commit comments