chore(ci): do not run CPU integer tests if not on our repo

This commit is contained in:
Arthur Meyre
2024-07-23 10:42:14 +02:00
parent d93c412dc5
commit fc9bfcaf61
2 changed files with 4 additions and 2 deletions

View File

@@ -31,8 +31,9 @@ jobs:
setup-instance:
name: Setup instance (unsigned-integer-tests)
if: (github.event_name == 'push' && github.repository == 'zama-ai/tfhe-rs') ||
(github.event_name == 'schedule' && github.repository == 'zama-ai/tfhe-rs') ||
(github.event_name == 'pull_request' && contains(github.event.label.name, 'approved')) ||
(github.event_name != 'push' && github.event_name != 'pull_request')
github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
outputs:
runner-name: ${{ steps.start-instance.outputs.label }}

View File

@@ -31,8 +31,9 @@ jobs:
setup-instance:
name: Setup instance (signed-integer-tests)
if: (github.event_name == 'push' && github.repository == 'zama-ai/tfhe-rs') ||
(github.event_name == 'schedule' && github.repository == 'zama-ai/tfhe-rs') ||
(github.event_name == 'pull_request' && contains(github.event.label.name, 'approved')) ||
(github.event_name != 'push' && github.event_name != 'pull_request')
github.event_name != 'workflow_dispatch'
runs-on: ubuntu-latest
outputs:
runner-name: ${{ steps.start-instance.outputs.label }}