diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 710f0293..687f536c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -92,6 +92,7 @@ jobs: docker-lint: name: Dockerfile lint checks + if: github.repository_owner == 'quantumlib' # ubuntu-slim runners don't have docker installed. runs-on: ubuntu-24.04 timeout-minutes: 15 @@ -114,6 +115,7 @@ jobs: shell-lint: name: Shell script lint checks + if: github.repository_owner == 'quantumlib' runs-on: ubuntu-slim timeout-minutes: 15 steps: @@ -136,6 +138,7 @@ jobs: yaml-lint: name: YAML lint checks + if: github.repository_owner == 'quantumlib' runs-on: ubuntu-slim timeout-minutes: 15 steps: @@ -160,6 +163,7 @@ jobs: bazel-lint: name: Bazel build lint checks + if: github.repository_owner == 'quantumlib' runs-on: ubuntu-slim timeout-minutes: 15 steps: @@ -183,6 +187,7 @@ jobs: action-lint: name: GitHub Actions lint checks + if: github.repository_owner == 'quantumlib' runs-on: ubuntu-slim timeout-minutes: 15 steps: @@ -201,6 +206,7 @@ jobs: library-tests: name: Library tests + if: github.repository_owner == 'quantumlib' needs: - action-lint - bazel-lint @@ -297,6 +303,7 @@ jobs: options-tests: name: Options tests + if: github.repository_owner == 'quantumlib' needs: - action-lint - bazel-lint @@ -352,6 +359,7 @@ jobs: memory-tests: name: Malloc/asan/msan tests + if: github.repository_owner == 'quantumlib' needs: - action-lint - bazel-lint @@ -407,6 +415,7 @@ jobs: docker-tests: name: Docker build tests + if: github.repository_owner == 'quantumlib' needs: - action-lint - docker-lint @@ -448,7 +457,7 @@ jobs: report-results: name: CI - if: always() + if: always() && github.repository_owner == 'quantumlib' needs: - action-lint - bazel-lint diff --git a/.github/workflows/cirq_compatibility.yml b/.github/workflows/cirq_compatibility.yml index 5fc76ff0..9921d46f 100644 --- a/.github/workflows/cirq_compatibility.yml +++ b/.github/workflows/cirq_compatibility.yml @@ -35,6 +35,7 @@ concurrency: jobs: test-compatibility: + if: github.repository_owner == 'quantumlib' name: Test Cirq compatibility runs-on: ubuntu-24.04 timeout-minutes: 30