Skip to content

Commit

Permalink
Test: Remove main repository requirement
Browse files Browse the repository at this point in the history
- For testing purposes.
  • Loading branch information
raynelfss committed Jan 25, 2025
1 parent 9cbf7fc commit e345893
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
cancel-in-progress: true
jobs:
docs:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
name: Docs
runs-on: ubuntu-latest
strategy:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
#
# For this to run on a branch, the `schedules` trigger up at the top of this
# file needs to match on _both_ `main` and the branch itself.
if: ${{ github.repository_owner == 'Qiskit'}}
# if: ${{ github.repository_owner == 'Qiskit'}}
uses: ./.github/workflows/on-nightly.yml
nightly-failure:
name: Create comment on failed test run
if: ${{ github.repository_owner == 'Qiskit' && failure() }}
# if: ${{ github.repository_owner == 'Qiskit' && failure() }}
if: ${{ failure() }}
runs-on: ubuntu-latest
steps:
- uses: peter-evans/create-or-update-comment@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/on-merge-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ concurrency:

jobs:
docs_lint:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
name: Docs and Lint
uses: ./.github/workflows/lint_docs.yml
test-linux:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
uses: ./.github/workflows/test-linux.yml
strategy:
matrix:
Expand All @@ -32,13 +32,13 @@ jobs:
test-rust: ${{ matrix.python-version == '3.9' }}
test-images: ${{ matrix.python-version == '3.9' }}
test-mac:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
uses: ./.github/workflows/test-mac.yml
with:
python-version: "3.13"
install-optionals: false
test-windows:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
uses: ./.github/workflows/test-windows.yml
with:
python-version: "3.13"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
# failure that would affect _any_ OS or Python version. The goal in the
# first stage is to catch the vast majority of failures with minimal cost.
lint-docs:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
name: Docs and Lint
uses: ./.github/workflows/lint_docs.yml
preliminary-tests:
name: Preliminary Tests
uses: ./.github/workflows/test-linux.yml
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
with:
python-version: "3.9"
# A PR is more likely to fail CI because it introduces a logic error
Expand All @@ -41,7 +41,7 @@ jobs:
# intermediate version of Python, so we just catch those in the cron-job
# pipeline to reduce the amount of resources used.
main-tests-ubuntu:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
name: Main Tests (ubuntu-latest)
needs: [lint-docs, preliminary-tests]
strategy:
Expand All @@ -56,7 +56,7 @@ jobs:
install-optionals: false

main-tests-mac:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
name: Main Tests (macos)
needs: [lint-docs, preliminary-tests]
strategy:
Expand All @@ -68,7 +68,7 @@ jobs:
install-optionals: ${{ matrix.python_version == '3.9'}}

main-tests-windows:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
name: Main Tests (windows-latest)
needs: [lint-docs, preliminary-tests]
strategy:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
tests-mac:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
uses: ./.github/workflows/test-mac.yml
strategy:
matrix:
Expand All @@ -17,7 +17,7 @@ jobs:
python-version: ${{ matrix.python-version }}
install-optionals: false
test-linux:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
uses: ./.github/workflows/test-linux.yml
with:
python-version: "3.9"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ on:

jobs:
tests-linux:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
name: ubuntu-latest-tests-Python-${{ inputs.python-version }}
runs-on: ubuntu-latest
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:

jobs:
tests-mac:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
name: macOS-arm64-tests-Python-${{ inputs.python-version }}
runs-on: macOS-14
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:

jobs:
test-windows:
if: github.repository_owner == 'Qiskit'
# if: github.repository_owner == 'Qiskit'
name: windows-latest-tests-Python-${{ inputs.python-version }}
runs-on: windows-latest
env:
Expand Down

0 comments on commit e345893

Please sign in to comment.