|
83 | 83 | with: |
84 | 84 | name: wheels-linux-${{ matrix.platform.target }} |
85 | 85 | path: dist |
| 86 | + |
| 87 | + - name: Upload wheel package to S3 |
| 88 | + uses: ./.github/actions/upload_to_s3 |
| 89 | + if: "!cancelled() && github.event_name != 'pull_request'" |
| 90 | + with: |
| 91 | + bucket: ${{ secrets.S3_ASSET_BUCKET }} |
| 92 | + name: linux-${{ matrix.platform.target }} |
| 93 | + path: dist |
| 94 | + s3-flags: --recursive |
| 95 | + role-to-assume: ${{ secrets.S3_UPLOAD_ROLE_ARN }} |
| 96 | + date: ${{ needs.get-date-sha.outputs.date }} |
| 97 | + sha: ${{ needs.get-date-sha.outputs.sha }} |
| 98 | + |
| 99 | + linux-pytest: |
| 100 | + needs: [linux] |
| 101 | + runs-on: ${{ matrix.platform.runner }} |
| 102 | + strategy: |
| 103 | + fail-fast: false |
| 104 | + matrix: |
| 105 | + platform: |
| 106 | + - runner: ubuntu-latest |
| 107 | + target: x86_64 |
| 108 | + - runner: ubuntu-latest |
| 109 | + target: aarch64 |
| 110 | + steps: |
| 111 | + - uses: actions/checkout@v4 |
| 112 | + |
| 113 | + - name: Download wheels |
| 114 | + uses: actions/download-artifact@v4 |
| 115 | + with: |
| 116 | + name: wheels-linux-${{ matrix.platform.target }} |
| 117 | + path: dist |
| 118 | + |
86 | 119 | - name: pytest |
87 | 120 | if: ${{ startsWith(matrix.platform.target, 'x86_64') }} |
88 | 121 | shell: bash |
|
95 | 128 | uv pip install -r requirements-dev.txt |
96 | 129 | uv pip install context-py --find-links ../dist --force-reinstall |
97 | 130 | pytest --cov |
| 131 | +
|
98 | 132 | - name: pytest |
99 | 133 | if: ${{ startsWith(matrix.platform.target, 'aarch64') }} |
100 | 134 | uses: uraimo/run-on-arch-action@v2 |
@@ -122,18 +156,6 @@ jobs: |
122 | 156 | slug: trunk-io/analytics-cli |
123 | 157 | directory: ./context-py |
124 | 158 |
|
125 | | - - name: Upload wheel package to S3 |
126 | | - uses: ./.github/actions/upload_to_s3 |
127 | | - if: "!cancelled() && github.event_name != 'pull_request'" |
128 | | - with: |
129 | | - bucket: ${{ secrets.S3_ASSET_BUCKET }} |
130 | | - name: linux-${{ matrix.platform.target }} |
131 | | - path: dist |
132 | | - s3-flags: --recursive |
133 | | - role-to-assume: ${{ secrets.S3_UPLOAD_ROLE_ARN }} |
134 | | - date: ${{ needs.get-date-sha.outputs.date }} |
135 | | - sha: ${{ needs.get-date-sha.outputs.sha }} |
136 | | - |
137 | 159 | macos: |
138 | 160 | needs: [get-date-sha] |
139 | 161 | runs-on: ${{ matrix.platform.runner }} |
|
0 commit comments