Skip to content

Commit

Permalink
Simplified testing workflows to exclude capture of job ID, and only r…
Browse files Browse the repository at this point in the history
…eport unit

test results and coverage for ubuntu 22 and python 3.9.
  • Loading branch information
Rory Barnes committed Sep 4, 2024
1 parent f7f386c commit 73d1e51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/tests-macos-intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
5 changes: 0 additions & 5 deletions .github/workflows/tests-macos-silicon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit 73d1e51

Please sign in to comment.