Skip to content

Setup PR tests

Setup PR tests #427

Workflow file for this run

name: Acceptance tests
on:
pull_request:
branch: [ 'main' ]
jobs:
cpu_tests:
strategy:
matrix:
toolchain: [tests_toolchain.cmake, tests_release_toolchain.cmake, tests_release_omp_toolchain.cmake]
name: CPU Test (${{ matrix.toolchain }})
environment: manual_workflow
uses: ./.github/workflows/cpu_tests.yml

Check failure on line 14 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Acceptance tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 14, Col: 5): Unexpected value 'uses' .github/workflows/tests.yml (Line: 15, Col: 5): Unexpected value 'with'
with:
toolchain: ${{ matrix.toolchain }}
merge_target: ${{ github.event.pull_request.base.ref }}
gpu_tests:
name: GPU Test (${{ matrix.toolchain }})
if: github.event.pull_request.draft == false
uses: ./.github/workflows/gpu_tests.yml
with:
toolchain: ./toolchains/v100.persee/toolchain.cmake
merge_target: ${{ github.event.pull_request.base.ref }}
resource_conservation:
runs-on: ubuntu-latest
needs: [cpu_tests, gpu_tests]
if: failure()
steps:
- name: Resource conservation
run:
gh pr ready ${{ github.event.pull_request.number }} --undo