Skip to content

Commit

Permalink
rinside tests
Browse files Browse the repository at this point in the history
  • Loading branch information
llaniewski committed Jan 2, 2024
1 parent 7b4fc4f commit 7e6315b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .github/actions/test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ inputs:
model:
description: model to compile
default: 'd2q9'
tests:
description: what tests to run
default: ''

runs:
using: 'composite'
steps:
- shell: bash
name: Run tests
run: tools/tests.sh ${{ inputs.model }}
run: tools/tests.sh ${{ inputs.model }} ${{ inputs.tests }}
13 changes: 7 additions & 6 deletions .github/workflows/rinside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
- cpu
- cuda
- hip
reticulate:
- true
- false
test:
- true
- false
Expand All @@ -28,7 +25,9 @@ jobs:
test: true
- arch: "hip"
test: true
- reticulate: true
- precision: "float"
test: true
- precision: "double"
test: false
steps:
- name: Git checkout
Expand All @@ -40,7 +39,7 @@ jobs:
rdep: true
openmpi: true
rinside: true
reticulate: ${{ matrix.reticulate }}
reticulate: ${{ matrix.test }}
cuda: ${{ matrix.arch == 'cuda' }}
hip: ${{ matrix.arch == 'hip' }}
- name: Configure
Expand All @@ -56,7 +55,9 @@ jobs:
uses: ./.github/actions/compile
with:
model: ${{ matrix.model }}
- name: Run tests
- if: matrix.test
name: Run tests
uses: ./.github/actions/test
with:
model: ${{ matrix.model }}
tests: rinside

0 comments on commit 7e6315b

Please sign in to comment.