1717 strategy :
1818 matrix :
1919 os : [ubuntu-latest, windows-2019, macOS-13]
20- pyver : ['3.8', '3.9', '3.10', '3.11', '3.12']
20+ pyver : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
2121
2222 steps :
2323 - uses : actions/checkout@v3
3737 git --version
3838
3939 - name : Package Python 3.8 and earlier
40- if : matrix.os == 'ubuntu-latest' && matrix.pyver != '3.9' && matrix.pyver != '3.10' && matrix.pyver != '3.11' && matrix.pyver != '3.12'
40+ if : matrix.os == 'ubuntu-latest' && matrix.pyver != '3.9' && matrix.pyver != '3.10' && matrix.pyver != '3.11' && matrix.pyver != '3.12' && matrix.pyver != '3.13'
4141 run : docker run --rm -v ${{github.workspace}}/:/io ezralanglois/interop sh /io/tools/package.sh /io /io/dist travis OFF
4242
4343 - name : Package Python 3.9
@@ -52,10 +52,14 @@ jobs:
5252 if : matrix.os == 'ubuntu-latest' && matrix.pyver == '3.11'
5353 run : docker run --rm -v ${{github.workspace}}/:/io $DOCKER_IMAGE sh /io/tools/package.sh /io /io/dist travis OFF Release cp311-cp311
5454
55- - name : Package Python 3.11
55+ - name : Package Python 3.12
5656 if : matrix.os == 'ubuntu-latest' && matrix.pyver == '3.12'
5757 run : docker run --rm -v ${{github.workspace}}/:/io $DOCKER_IMAGE sh /io/tools/package.sh /io /io/dist travis OFF Release cp312-cp312
5858
59+ - name : Package Python 3.13
60+ if : matrix.os == 'ubuntu-latest' && matrix.pyver == '3.13'
61+ run : docker run --rm -v ${{github.workspace}}/:/io $DOCKER_IMAGE sh /io/tools/package.sh /io /io/dist travis OFF Release cp313-cp313
62+
5963 - name : Windows Package Python
6064 if : matrix.os == 'windows-2019'
6165 shell : cmd
6771 if : matrix.os == 'macOS-latest' || matrix.os == 'macOS-13'
6872 run : bash ./tools/package.sh ${{github.workspace}} ${{github.workspace}}/dist travis OFF Release ${{matrix.pyver}}
6973
70- - uses : actions/upload-artifact@v3
74+ - uses : actions/upload-artifact@v4
7175 with :
76+ name : artifact_${{matrix.pyver}}_${{matrix.os}}
7277 path : dist/*.whl
7378
7479 publishtest :
@@ -77,10 +82,12 @@ jobs:
7782 if : startsWith(github.ref, 'refs/tags') != true
7883
7984 steps :
80- - uses : actions/download-artifact@v3
85+ - uses : actions/download-artifact@v4
8186 with :
82- name : artifact
8387 path : dist
88+ merge-multiple : true
89+ - name : Print dist
90+ run : ls -lR dist
8491 - name : Test Publish a Python distribution to PyPI
8592 uses : pypa/gh-action-pypi-publish@release/v1
8693 with :
@@ -89,17 +96,18 @@ jobs:
8996 packages_dir : ./dist
9097 repository_url : https://test.pypi.org/legacy/
9198 skip_existing : true
99+ verbose : true
92100
93101 publish :
94102 needs : [build]
95103 runs-on : ubuntu-latest
96104 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
97105
98106 steps :
99- - uses : actions/download-artifact@v3
107+ - uses : actions/download-artifact@v4
100108 with :
101- name : artifact
102109 path : dist
110+ merge-multiple : true
103111 - name : Publish a Python distribution to PyPI
104112 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
105113 uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments