Skip to content

Commit

Permalink
Turn off CI for forks (#1345)
Browse files Browse the repository at this point in the history
Follows Qiskit/qiskit#10078. I don't see a
reason to run CI on forks by default.
  • Loading branch information
coruscating authored Dec 18, 2023
1 parent 8cc20df commit f7750d5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cron-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
qiskit-main-tests:
if: github.repository_owner == 'Qiskit-Extensions'
name: tests-python${{ matrix.python-version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:
TEST_TIMEOUT: 120
OMP_NUM_THREADS: 1
docs:
if: github.repository_owner == 'Qiskit-Extensions'
name: docs
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
deploy:
if: github.repository_owner == 'Qiskit-Extensions'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
deploy:
if: github.repository_owner == 'Qiskit-Extensions'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ concurrency:
cancel-in-progress: true
jobs:
tests:
if: github.repository_owner == 'Qiskit-Extensions'
name: tests-python${{ matrix.python-version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -62,6 +63,7 @@ jobs:
run: stestr history remove all

lint:
if: github.repository_owner == 'Qiskit-Extensions'
name: lint
runs-on: ubuntu-latest
steps:
Expand All @@ -80,6 +82,7 @@ jobs:
- name: Run lint
run: tox -elint
docs:
if: github.repository_owner == 'Qiskit-Extensions'
name: docs
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/neko.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ concurrency:
cancel-in-progress: true
jobs:
neko:
if: github.repository_owner == 'Qiskit-Extensions'
name: Qiskit Neko Integration Tests
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit f7750d5

Please sign in to comment.