|
30 | 30 | MODULE: core |
31 | 31 | ANSYS_DPF_ACCEPT_LA: Y |
32 | 32 | ANSYSLMD_LICENSE_FILE: 1055@${{secrets.LICENSE_SERVER}} |
33 | | - DPF_DOCKER: ghcr.io/ansys-dpf/dpf-standalone:linux-25.1 |
34 | 33 |
|
35 | 34 | jobs: |
36 | 35 | docker_tests: |
37 | 36 | name: "Build and Test On Docker" |
38 | | - runs-on: ${{ matrix.os }} |
| 37 | + runs-on: ${{ matrix.platform.os }} |
39 | 38 | strategy: |
40 | 39 | fail-fast: false |
41 | 40 | matrix: |
42 | 41 | python-version: ["3.10"] |
43 | | - os: ["ubuntu-latest"] |
| 42 | + platform: |
| 43 | + - os: "ubuntu-latest" |
| 44 | + image-name: ghcr.io/ansys-dpf/dpf-standalone:linux-26.1 |
| 45 | + - os: "windows-latest" |
| 46 | + image-name: ghcr.io/ansys-dpf/dpf-standalone:windows-26.1 |
| 47 | + env: |
| 48 | + DPF_DOCKER: ${{ matrix.platform.os }} |
44 | 49 |
|
45 | 50 | steps: |
46 | 51 | - uses: actions/checkout@v4 |
|
59 | 64 | - name: "Build the wheel" |
60 | 65 | shell: bash |
61 | 66 | run: | |
62 | | - if [ ${{ matrix.os }} == "ubuntu-latest" ]; then |
| 67 | + if [ ${{ matrix.platform.os }} == "ubuntu-latest" ]; then |
63 | 68 | export platform="manylinux_2_17" |
64 | 69 | else |
65 | 70 | export platform="win" |
@@ -240,21 +245,21 @@ jobs: |
240 | 245 | - name: "Upload Test Results" |
241 | 246 | uses: actions/upload-artifact@v4 |
242 | 247 | with: |
243 | | - name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}_docker |
| 248 | + name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.platform.os }}_pytest_${{ inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}_docker |
244 | 249 | path: tests/junit/test-results.xml |
245 | 250 | timeout-minutes: 5 |
246 | 251 |
|
247 | 252 | - name: "Upload coverage to Codecov" |
248 | 253 | uses: codecov/codecov-action@v4 |
249 | 254 | with: |
250 | 255 | token: ${{ secrets.CODECOV_TOKEN }} # required |
251 | | - name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}_docker.xml |
252 | | - flags: docker,${{ inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }},${{ matrix.os }},${{ matrix.python-version }} |
| 256 | + name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.platform.os }}_pytest_${{ inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}_docker.xml |
| 257 | + flags: docker,${{ inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }},${{ matrix.platform.os }},${{ matrix.python-version }} |
253 | 258 |
|
254 | 259 | - name: "Upload test analytics results to Codecov" |
255 | 260 | if: ${{ !cancelled() }} |
256 | 261 | uses: codecov/test-results-action@v1 |
257 | 262 | with: |
258 | 263 | token: ${{ secrets.CODECOV_TOKEN }} |
259 | | - name: test_results_${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_${{ inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}${{ inputs.test_any == 'true' && '_any' || '' }} |
260 | | - flags: ${{ inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }},${{ matrix.os }},${{ matrix.python-version }}${{ inputs.test_any == 'true' && ',any' || '' }} |
| 264 | + name: test_results_${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.platform.os }}_${{ inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }}${{ inputs.test_any == 'true' && '_any' || '' }} |
| 265 | + flags: ${{ inputs.ANSYS_VERSION || vars.ANSYS_VERSION_DEFAULT }},${{ matrix.platform.os }},${{ matrix.python-version }}${{ inputs.test_any == 'true' && ',any' || '' }} |
0 commit comments