Skip to content

Commit

Permalink
Minor fixes and corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Jul 14, 2024
1 parent 070e2c6 commit 96d4eef
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/fast_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# https://tardis-sn.github.io/tardis/development/continuous_integration.html

name: fast tests
name: tests

on:
push:
Expand All @@ -11,11 +11,6 @@ on:
pull_request:
branches:
- '*'
types:
- opened
- reopened
- synchronize
- labeled


env:
Expand All @@ -32,24 +27,34 @@ jobs:
test-matrix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: set-matrix
run: |
sudo apt-get install jq
echo 'folder-matrix=$(find "tardis" -mindepth 1 -maxdepth 1 -type d | grep -v '__pycache__' | jq -R . | jq -cs .)' >> "$GITHUB_OUTPUT"
echo 'os-matrix=["ubuntu-latest", "macos-latest"]' >> "$GITHUB_OUTPUT"
folder_matrix=$(find "tardis" -mindepth 1 -maxdepth 1 -type d | grep -v '__pycache__' | jq -R . | jq -cs .)
echo "folder-matrix=$folder_matrix" >> "$GITHUB_OUTPUT"
- run: |
echo "$JOB_CONTEXT"
echo "$JOB_CONTEXT2"
env:
JOB_CONTEXT: ${{ steps.set-matrix.outputs.folder-matrix }}
JOB_CONTEXT2: ${{ steps.set-matrix.outputs.os-matrix }}
outputs:
folder-matrix: ${{ steps.set-matrix.outputs.folder-matrix }}
os-matrix: ${{ steps.set-matrix.outputs.os-matrix }}

non-continuum:
if: always()
needs: test-matrix
strategy:
matrix:
test-path: ${{fromJson(needs.test-matrix.outputs.folder-matrix)}}
os: ${{fromJson(needs.test-matrix.outputs.os-matrix)}}
runs-on: ${{ matrix.os }}
name: nct-${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup tardis
uses: ./.github/actions/setup_tardis
Expand All @@ -68,14 +73,16 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'run-generation-tests') || github.ref == 'refs/heads/master'

continuum_tests:
if: always()
needs: test-matrix
strategy:
matrix:
test-path: ${{fromJson(needs.test-matrix.outputs.folder-matrix)}}
os: ${{fromJson(needs.test-matrix.outputs.os-matrix)}}
runs-on: ${{ matrix.os }}
name: ct-${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup tardis
uses: ./.github/actions/setup_tardis
Expand Down

0 comments on commit 96d4eef

Please sign in to comment.