@@ -5,7 +5,7 @@ name: Create ScanCode release archives, then test and publish to GH and PyPI
55 # Summary of the steps:
66 # - Build wheel and sdist for the "main" scancode, then build these for the "mini" flavor
77 # - test each wheel and sdist on every possible OS x Python version combinations
8- # - Build release app archives, one for each of linux, windows, macos on Python 3.9 to 3.12
8+ # - Build release app archives, one for each of linux, windows, macos on Python 3.9 to 3.13
99 # - test each on its target OS and Python version
1010 # - Create gh-release and upload app archives to release
1111 # - Upload all wheels and sdist to PyPI
3434 strategy :
3535 fail-fast : true
3636 matrix :
37- pyver : ["3.9", "3.10", "3.11", "3.12"]
37+ pyver : ["3.9", "3.10", "3.11", "3.12", "3.13" ]
3838
3939 steps :
4040 - uses : actions/checkout@v4
7474 - name : Set up Python
7575 uses : actions/setup-python@v5
7676 with :
77- python-version : " 3.12 "
77+ python-version : " 3.13 "
7878
7979 - name : Install requirements then build main and mini sdist
8080 run : etc/release/scancode-create-pypi-sdist.sh
@@ -100,7 +100,7 @@ jobs:
100100 strategy :
101101 fail-fast : true
102102 matrix :
103- pyver : ["3.9", "3.10", "3.11", "3.12"]
103+ pyver : ["3.9", "3.10", "3.11", "3.12", "3.13" ]
104104
105105 steps :
106106 - uses : actions/checkout@v4
@@ -135,7 +135,7 @@ jobs:
135135 strategy :
136136 fail-fast : true
137137 matrix :
138- pyver : ["3.9", "3.10", "3.11", "3.12"]
138+ pyver : ["3.9", "3.10", "3.11", "3.12", "3.13" ]
139139
140140 steps :
141141 - uses : actions/checkout@v4
@@ -170,7 +170,7 @@ jobs:
170170 strategy :
171171 fail-fast : true
172172 matrix :
173- pyver : ["3.9", "3.10", "3.11", "3.12"]
173+ pyver : ["3.9", "3.10", "3.11", "3.12", "3.13" ]
174174
175175 steps :
176176 - uses : actions/checkout@v4
@@ -211,7 +211,7 @@ jobs:
211211 - name : Set up Python
212212 uses : actions/setup-python@v5
213213 with :
214- python-version : " 3.12 "
214+ python-version : " 3.13 "
215215
216216 - name : Build source archive with deps
217217 run : etc/release/scancode-create-release-app-sources.sh
@@ -240,7 +240,7 @@ jobs:
240240 fail-fast : true
241241 matrix :
242242 os : [ubuntu-24.04, ubuntu-24.04, macos-13, macos-14]
243- pyver : ["3.9", "3.10", "3.11", "3.12"]
243+ pyver : ["3.9", "3.10", "3.11", "3.12", "3.13" ]
244244
245245 steps :
246246 - uses : actions/checkout@v4
@@ -285,8 +285,8 @@ jobs:
285285 strategy :
286286 fail-fast : true
287287 matrix :
288- os : [windows-2019 , windows-2022]
289- pyver : ["3.9", "3.10", "3.11", "3.12"]
288+ os : [windows-2025 , windows-2022]
289+ pyver : ["3.9", "3.10", "3.11", "3.12", "3.13" ]
290290
291291 steps :
292292 - uses : actions/checkout@v4
@@ -331,7 +331,7 @@ jobs:
331331 fail-fast : true
332332 matrix :
333333 os : [ubuntu-24.04, ubuntu-24.04]
334- pyver : ["3.9", "3.10", "3.11", "3.12"]
334+ pyver : ["3.9", "3.10", "3.11", "3.12", "3.13" ]
335335
336336 steps :
337337 - uses : actions/checkout@v4
@@ -349,7 +349,7 @@ jobs:
349349
350350 - name : test install app archive
351351 run : |
352- for f in `find dist -type f -name "*.tar.gz "`; \
352+ for f in `find dist -type f -name "*.zip "`; \
353353 do \
354354 python etc/release/scancode_release_tests.py $f; \
355355 done
@@ -372,7 +372,7 @@ jobs:
372372 fail-fast : true
373373 matrix :
374374 os : [macos-13, macos-14]
375- pyver : ["3.9", "3.10", "3.11", "3.12"]
375+ pyver : ["3.9", "3.10", "3.11", "3.12", "3.13" ]
376376
377377 steps :
378378 - uses : actions/checkout@v4
@@ -390,7 +390,7 @@ jobs:
390390
391391 - name : test install app archive
392392 run : |
393- for f in `find dist -type f -name "*.tar.gz "`; \
393+ for f in `find dist -type f -name "*.zip "`; \
394394 do \
395395 python etc/release/scancode_release_tests.py $f; \
396396 done
@@ -412,8 +412,8 @@ jobs:
412412 strategy :
413413 fail-fast : true
414414 matrix :
415- os : [windows-2019 , windows-2022]
416- pyver : ["3.9", "3.10", "3.11", "3.12"]
415+ os : [windows-2025 , windows-2022]
416+ pyver : ["3.9", "3.10", "3.11", "3.12", "3.13" ]
417417
418418 steps :
419419 - uses : actions/checkout@v4
@@ -485,6 +485,12 @@ jobs:
485485 name : macos_app_py_3.12
486486 path : dist
487487
488+ - name : Download a single artifact macos_app for python 3.13
489+ uses : actions/download-artifact@v4
490+ with :
491+ name : macos_app_py_3.13
492+ path : dist
493+
488494 - name : Download a single artifact linux_app for python 3.9
489495 uses : actions/download-artifact@v4
490496 with :
@@ -509,6 +515,12 @@ jobs:
509515 name : linux_app_py_3.12
510516 path : dist
511517
518+ - name : Download a single artifact linux_app for python 3.13
519+ uses : actions/download-artifact@v4
520+ with :
521+ name : linux_app_py_3.13
522+ path : dist
523+
512524 - name : Download a single artifact windows_app for python 3.9
513525 uses : actions/download-artifact@v4
514526 with :
@@ -533,6 +545,12 @@ jobs:
533545 name : windows_app_py_3.12
534546 path : dist
535547
548+ - name : Download a single artifact windows_app for python 3.13
549+ uses : actions/download-artifact@v4
550+ with :
551+ name : windows_app_py_3.13
552+ path : dist
553+
536554 - name : Mock GH release
537555 run : |
538556 ls -al dist
@@ -559,13 +577,13 @@ jobs:
559577 strategy :
560578 fail-fast : true
561579 matrix :
562- dist_names : ["wheels-3.9", "wheels-3.10", "wheels-3.11", "wheels-3.12", sdists]
580+ dist_names : ["wheels-3.9", "wheels-3.10", "wheels-3.11", "wheels-3.12", "wheels-3.13", sdists]
563581
564582 steps :
565583 - name : Set up Python
566584 uses : actions/setup-python@v5
567585 with :
568- python-version : 3.9
586+ python-version : 3.13
569587
570588 - name : Download a single artifact
571589 uses : actions/download-artifact@v4
0 commit comments