Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ env:

on:
push:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
pull_request:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
workflow_dispatch:

concurrency:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/go-version-consistency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ name: Go version consistency

on:
push:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
pull_request:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
workflow_dispatch:

jobs:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/julia-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ env:
on:
push:
branches:
- main
- dev
- development
- master
tags:
- 'jl-*' # Trigger on Julia-specific tags
pull_request:
branches:
- main
- dev
- development
- master
Expand All @@ -50,15 +52,19 @@ jobs:
runs-on: ubuntu-latest
if: |
github.event_name == 'pull_request' && github.event.action != 'closed' ||
github.event_name == 'push' && contains(fromJSON('["master", "dev", "development"]'), github.ref_name)
github.event_name == 'push' && contains(fromJSON('["main", "master", "dev", "development"]'), github.ref_name) ||
github.event_name == 'push' && startsWith(github.ref, 'refs/tags/jl-')
outputs:
run: ${{ steps.check.outputs.run }}
steps:
- name: Check if should run on PR push
id: check
run: |
# Always run on tag pushes (jl-* tags trigger releases)
if [ "${{ github.event_name }}" = "push" ] && [[ "${{ github.ref }}" == refs/tags/jl-* ]]; then
echo "run=true" >> $GITHUB_OUTPUT
# Always run on pushes to main branches
if [ "${{ github.event_name }}" = "push" ] && [[ "${{ github.ref_name }}" =~ ^(master|dev|development)$ ]]; then
elif [ "${{ github.event_name }}" = "push" ] && [[ "${{ github.ref_name }}" =~ ^(main|master|dev|development)$ ]]; then
echo "run=true" >> $GITHUB_OUTPUT
# For PRs, check the TRIGGER_ON_PR_PUSH setting
elif [ "${{ github.event_name }}" = "pull_request" ] && [ "${{ env.TRIGGER_ON_PR_PUSH }}" = "true" ]; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/julia-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ env:

on:
push:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
pull_request:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
workflow_dispatch:

concurrency:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/julia-version-consistency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ name: Julia version consistency

on:
push:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
pull_request:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
workflow_dispatch:

jobs:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ env:
on:
push:
branches:
- main
- dev
- development
- master
tags:
- 'py-*'
pull_request:
branches:
- main
- dev
- development
- master
Expand All @@ -39,15 +41,19 @@ jobs:
runs-on: ubuntu-latest
if: |
github.event_name == 'pull_request' && github.event.action != 'closed' ||
github.event_name == 'push' && contains(fromJSON('["master", "dev", "development"]'), github.ref_name)
github.event_name == 'push' && contains(fromJSON('["main", "master", "dev", "development"]'), github.ref_name) ||
github.event_name == 'push' && startsWith(github.ref, 'refs/tags/py-')
outputs:
run: ${{ steps.check.outputs.run }}
steps:
- name: Check if should run on PR push
id: check
run: |
# Always run on tag pushes (py-* tags trigger releases)
if [ "${{ github.event_name }}" = "push" ] && [[ "${{ github.ref }}" == refs/tags/py-* ]]; then
echo "run=true" >> $GITHUB_OUTPUT
# Always run on pushes to main branches
if [ "${{ github.event_name }}" = "push" ] && [[ "${{ github.ref_name }}" =~ ^(master|dev|development)$ ]]; then
elif [ "${{ github.event_name }}" = "push" ] && [[ "${{ github.ref_name }}" =~ ^(main|master|dev|development)$ ]]; then
echo "run=true" >> $GITHUB_OUTPUT
# For PRs, check the TRIGGER_ON_PR_PUSH setting
elif [ "${{ github.event_name }}" = "pull_request" ] && [ "${{ env.TRIGGER_ON_PR_PUSH }}" = "true" ]; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ env:

on:
push:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
pull_request:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
workflow_dispatch:

concurrency:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

on:
push:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
paths:
- 'crates/**'
- 'examples/**'
Expand All @@ -16,7 +16,7 @@ on:
- '.github/workflows/rust-test.yml'
- '.pre-commit-config.yaml'
pull_request:
branches: [ "master", "development", "dev" ]
branches: [ "main", "master", "development", "dev" ]
paths:
- 'crates/**'
- 'examples/**'
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref_name == 'master' || github.ref_name == 'development' || github.ref_name == 'dev' }}
save-if: ${{ github.ref_name == 'main' || github.ref_name == 'master' || github.ref_name == 'development' || github.ref_name == 'dev' }}

- name: Install LLVM 14.0.6 using pecos-llvm
run: |
Expand Down Expand Up @@ -76,11 +76,14 @@ jobs:
- name: Run clippy
run: |
echo "Running clippy with all features (including LLVM)..."
cargo clippy --workspace --exclude pecos --exclude pecos-quest --all-targets --all-features -- -D warnings
# Exclude crates with GPU features that require CUDA
cargo clippy --workspace --exclude pecos --exclude pecos-quest --exclude pecos-selene-quest --all-targets --all-features -- -D warnings
echo "Running clippy on pecos with all non-GPU features..."
cargo clippy -p pecos --all-targets --features "llvm,selene,qasm,phir,all-simulators" -- -D warnings
echo "Running clippy on pecos-quest with CPU features only..."
cargo clippy -p pecos-quest --all-targets --features "cpu" -- -D warnings
echo "Running clippy on pecos-selene-quest without GPU..."
cargo clippy -p pecos-selene-quest --all-targets -- -D warnings

rust-lint-no-llvm:
runs-on: ubuntu-latest
Expand All @@ -99,7 +102,7 @@ jobs:
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref_name == 'master' || github.ref_name == 'development' || github.ref_name == 'dev' }}
save-if: ${{ github.ref_name == 'main' || github.ref_name == 'master' || github.ref_name == 'development' || github.ref_name == 'dev' }}

- name: Install rustfmt
run: rustup component add rustfmt
Expand Down Expand Up @@ -195,7 +198,7 @@ jobs:
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref_name == 'master' || github.ref_name == 'development' || github.ref_name == 'dev' }}
save-if: ${{ github.ref_name == 'main' || github.ref_name == 'master' || github.ref_name == 'development' || github.ref_name == 'dev' }}

- name: Install LLVM 14.0.6 using pecos-llvm (Unix)
if: matrix.os != 'windows-latest'
Expand Down
Loading
Loading