diff --git a/.github/workflows/tests-linux.yml b/.github/workflows/tests-linux.yml index 2d90d3f93..f79c0ca18 100644 --- a/.github/workflows/tests-linux.yml +++ b/.github/workflows/tests-linux.yml @@ -48,26 +48,27 @@ jobs: make opt pytest --tb=short --junitxml=junit/test-results.xml - - name: Check test ouptut created + - name: Check test output created id: check_test_file + if: ${{ matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.9' }} uses: andstor/file-existence-action@v3 with: files: "/home/runner/work/vplanet/vplanet/junit/test-results.xml" fail: true - name: Publish unit test results + if: ${{ matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.9' }} uses: EnricoMi/publish-unit-test-result-action@v2 - if: always() with: files: junit/test-*.xml - name: Generate coverage id: coverage - if: steps.test.outcome == 'success' && steps.check_test_file.outcome == 'success' + if: ${{ matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.9' && steps.test.outcome == 'success' && steps.check_test_file.outcome == 'success' }} run: make coverage - - name: CodeCov - if: ${{ matrix.os }} == ubuntu-22.04 && ${{ matrix.python-version }} == '3.9' + - name: Upload to CodeCov + if: ${{ matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.9' }} uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/tests-macos-intel.yml b/.github/workflows/tests-macos-intel.yml index a0dfc3c4d..f4cbc123a 100644 --- a/.github/workflows/tests-macos-intel.yml +++ b/.github/workflows/tests-macos-intel.yml @@ -43,9 +43,3 @@ jobs: with: files: "/home/runner/work/vplanet/vplanet/junit/test-results.xml" fail: true - - - name: Get unique id - uses: Tiryoh/gha-jobid-action@v1 - id: jobs - with: - job_name: "Testing ${{ matrix.os }}:python-${{ matrix.python-version }}" diff --git a/.github/workflows/tests-macos-silicon.yml b/.github/workflows/tests-macos-silicon.yml index ce7754967..2c8918042 100644 --- a/.github/workflows/tests-macos-silicon.yml +++ b/.github/workflows/tests-macos-silicon.yml @@ -44,8 +44,3 @@ jobs: files: "/home/runner/work/vplanet/vplanet/junit/test-results.xml" fail: true - - name: Get unique id - uses: Tiryoh/gha-jobid-action@v1 - id: jobs - with: - job_name: "Testing ${{ matrix.os }}:python-${{ matrix.python-version }}"