diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 329243f9..d1c2780a 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -20,16 +20,8 @@ jobs: secrets: inherit run-tests-gpu: if: | - ( - github.event_name == 'push' || - (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) - ) && - ( - github.ref == 'refs/heads/main' || - startsWith(github.ref, 'refs/tags/') || - contains(github.event.head_commit.message, '[gpu]') || - contains(github.event.pull_request.title, '[gpu]') - ) + (github.event_name == 'push' && contains(github.event.head_commit.message, '[gpu]')) || + (github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[gpu]')) uses: ./.github/workflows/run-tests-gpu.yaml secrets: inherit build-docker-image: @@ -42,6 +34,6 @@ jobs: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') ) - needs: [pre-commit-check, run-tests-cpu, run-tests-gpu] + needs: [pre-commit-check, run-tests-cpu] secrets: inherit uses: ./.github/workflows/build-docker-image.yaml