Skip to content

Commit

Permalink
Trying to fix how job ids are found in GitHub Actions
Browse files Browse the repository at this point in the history
Also removed imp and subprocess from setup.py.
  • Loading branch information
Rory Barnes committed Sep 4, 2024
1 parent d201ee7 commit 7f261f6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
- name: Get unique id
uses: Tiryoh/gha-jobid-action@v1
id: jobs
with:
job_name: "Testing ${{ matrix.os }}:python-${{ matrix.python-version }}" # input job.<job-id>.name and matrix here.
per_page: 50 # input matrix size here if it is larger than 30

- name: Publish unit test results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/tests-macos-intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,17 @@ jobs:
if: steps.setup_python.outcome == 'success'
run: |
make opt
pytest --tb=short
pytest --tb=short --junitxml=junit/test-results.xml
- name: Check test ouptut created
id: check_test_file
uses: andstor/file-existence-action@v3
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 }}"
11 changes: 10 additions & 1 deletion .github/workflows/tests-macos-silicon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,17 @@ jobs:
if: steps.setup_python.outcome == 'success'
run: |
make opt
pytest --tb=short
pytest --tb=short --junitxml=junit/test-results.xml
- name: Check test ouptut created
id: check_test_file
uses: andstor/file-existence-action@v3
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 }}"
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import imp
import os
import subprocess as sub
import sys
from distutils.command.clean import clean
from glob import glob
Expand Down

0 comments on commit 7f261f6

Please sign in to comment.