|
13 | 13 | runs-on: ${{ matrix.os }} |
14 | 14 | strategy: |
15 | 15 | matrix: |
16 | | - python-version: ['3.12'] |
| 16 | + python-version: ['3.12', '3.13'] |
17 | 17 | os: ['ubuntu-latest', 'windows-latest'] |
18 | 18 | omc-version: ['stable'] |
19 | 19 |
|
@@ -54,38 +54,51 @@ jobs: |
54 | 54 | click-to-expand: true |
55 | 55 | report-title: 'Test Report' |
56 | 56 |
|
57 | | - - name: Build distribution |
58 | | - run: python -m build --wheel --sdist --outdir dist |
| 57 | + - name: Build wheel |
| 58 | + run: python -m build --wheel --outdir wheels |
59 | 59 |
|
60 | | - - name: Upload artifacts |
| 60 | + - name: Upload wheel artifact |
61 | 61 | uses: actions/upload-artifact@v4.6.2 |
62 | 62 | with: |
63 | | - name: dist-${{ matrix.os }} |
64 | | - path: dist/* |
| 63 | + name: wheel-${{ matrix.os }}-${{ matrix.python-version }} |
| 64 | + path: wheels/* |
65 | 65 |
|
66 | 66 | Publish: |
67 | 67 | name: Publish to PyPI |
68 | 68 | runs-on: ubuntu-latest |
69 | 69 | needs: Test-Build |
70 | 70 | if: startsWith(github.ref, 'refs/tags/') |
71 | 71 | steps: |
72 | | - - name: Download Ubuntu artifacts |
| 72 | + - name: Download Ubuntu wheel artifact 3.12 |
73 | 73 | uses: actions/download-artifact@v5 |
74 | 74 | with: |
75 | | - name: dist-ubuntu-latest |
76 | | - path: dist/ubuntu |
77 | | - - name: Download Windows artifacts |
| 75 | + name: wheel-ubuntu-latest-3.12 |
| 76 | + path: wheels/ubuntu |
| 77 | + |
| 78 | + - name: Download Ubuntu wheel artifact 3.13 |
| 79 | + uses: actions/download-artifact@v5 |
| 80 | + with: |
| 81 | + name: wheel-ubuntu-latest-3.13 |
| 82 | + path: wheels/ubuntu |
| 83 | + |
| 84 | + - name: Download Windows wheel artifact 3.12 |
| 85 | + uses: actions/download-artifact@v5 |
| 86 | + with: |
| 87 | + name: wheel-windows-latest-3.12 |
| 88 | + path: wheels/windows |
| 89 | + |
| 90 | + - name: Download Windows wheel artifact 3.13 |
78 | 91 | uses: actions/download-artifact@v5 |
79 | 92 | with: |
80 | | - name: dist-windows-latest |
81 | | - path: dist/windows |
| 93 | + name: wheel-windows-latest-3.13 |
| 94 | + path: wheels/windows |
82 | 95 |
|
83 | | - - name: Install Twine |
| 96 | + - name: Install twine |
84 | 97 | run: python -m pip install --upgrade twine |
85 | 98 |
|
86 | | - - name: Publish all distributions to PyPI |
| 99 | + - name: Publish all wheels to PyPI |
87 | 100 | env: |
88 | 101 | TWINE_USERNAME: __token__ |
89 | 102 | TWINE_PASSWORD: ${{ secrets.PYPI_OMSENS_API_TOKEN }} |
90 | 103 | run: | |
91 | | - python -m twine upload dist/ubuntu/* dist/windows/* --skip-existing |
| 104 | + python -m twine upload wheels/ubuntu/* wheels/windows/* --skip-existing |
0 commit comments