Skip to content

Commit

Permalink
Use paths-ignore to simplify workflow paths
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmr committed Apr 24, 2024
1 parent cec9d10 commit 7bc6402
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 92 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/tests_lgpu_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,10 @@ on:
pull_request:
paths:
- .github/workflows/tests_lgpu_cpp.yml
- pennylane_lightning/core/src/*
- pennylane_lightning/core/src/algorithms/**
- pennylane_lightning/core/src/bindings/**
- pennylane_lightning/core/src/gates/**
- pennylane_lightning/core/src/measurements/**
- pennylane_lightning/core/src/observables/**
- pennylane_lightning/core/src/simulators/base/**
- pennylane_lightning/core/src/simulators/lightning_gpu/**
- pennylane_lightning/core/src/utils
- pennylane_lightning/core/src/**
paths-ignore:
- pennylane_lightning/core/src/simulators/lightning_kokkos/**
- pennylane_lightning/core/src/simulators/lightning_qubit/**
push:
branches:
- master
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/tests_lgpu_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,11 @@ on:
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
release:
pull_request:
paths:
- .github/workflows/tests_lgpu_python.yml
- pennylane_lightning/core/src/*
- pennylane_lightning/core/src/algorithms/**
- pennylane_lightning/core/src/bindings/**
- pennylane_lightning/core/src/gates/**
- pennylane_lightning/core/src/measurements/**
- pennylane_lightning/core/src/observables/**
- pennylane_lightning/core/src/simulators/base/**
- pennylane_lightning/core/src/simulators/lightning_gpu/**
- pennylane_lightning/core/src/utils
- pennylane_lightning/lightning_gpu/**
- tests/**
paths-ignore:
- pennylane_lightning/core/src/simulators/lightning_kokkos/**
- pennylane_lightning/core/src/simulators/lightning_qubit/**
- pennylane_lightning/lightning_kokkos/**
- pennylane_lightning/lightning_qubit/**
push:
branches:
- master
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/tests_lgpumpi_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,10 @@ on:
pull_request:
paths:
- .github/workflows/tests_lgpumpi_cpp.yml
- pennylane_lightning/core/src/*
- pennylane_lightning/core/src/algorithms/**
- pennylane_lightning/core/src/bindings/**
- pennylane_lightning/core/src/gates/**
- pennylane_lightning/core/src/measurements/**
- pennylane_lightning/core/src/observables/**
- pennylane_lightning/core/src/simulators/base/**
- pennylane_lightning/core/src/simulators/lightning_gpu/**
- pennylane_lightning/core/src/utils
- pennylane_lightning/core/src/**
paths-ignore:
- pennylane_lightning/core/src/simulators/lightning_kokkos/**
- pennylane_lightning/core/src/simulators/lightning_qubit/**
env:
COVERAGE_FLAGS: "--cov=pennylane_lightning --cov-report=term-missing --cov-report=xml:./coverage.xml --no-flaky-report -p no:warnings --tb=native"
GCC_VERSION: 11
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/tests_lgpumpi_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,11 @@ on:
branches:
- main
pull_request:
paths:
- .github/workflows/tests_lgpumpi_python.yml
- mpitests/**
- pennylane_lightning/core/src/*
- pennylane_lightning/core/src/algorithms/**
- pennylane_lightning/core/src/bindings/**
- pennylane_lightning/core/src/gates/**
- pennylane_lightning/core/src/measurements/**
- pennylane_lightning/core/src/observables/**
- pennylane_lightning/core/src/simulators/base/**
- pennylane_lightning/core/src/simulators/lightning_gpu/**
- pennylane_lightning/core/src/utils
- pennylane_lightning/lightning_gpu/**
- tests/**
paths-ignore:
- pennylane_lightning/core/src/simulators/lightning_kokkos/**
- pennylane_lightning/core/src/simulators/lightning_qubit/**
- pennylane_lightning/lightning_kokkos/**
- pennylane_lightning/lightning_qubit/**
env:
COVERAGE_FLAGS: "--cov=pennylane_lightning --cov-report=term-missing --cov-report=xml:./coverage.xml --no-flaky-report -p no:warnings --tb=native"
GCC_VERSION: 11
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/tests_linux_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,9 @@ on:
pull_request:
paths:
- .github/workflows/tests_linux_cpp.yml
- pennylane_lightning/core/src/*
- pennylane_lightning/core/src/algorithms/**
- pennylane_lightning/core/src/bindings/**
- pennylane_lightning/core/src/gates/**
- pennylane_lightning/core/src/measurements/**
- pennylane_lightning/core/src/observables/**
- pennylane_lightning/core/src/simulators/base/**
- pennylane_lightning/core/src/simulators/lightning_kokkos/**
- pennylane_lightning/core/src/simulators/lightning_qubit/**
- pennylane_lightning/core/src/utils
- pennylane_lightning/core/src/**
paths-ignore:
- pennylane_lightning/core/src/simulators/lightning_gpu/**
push:
branches:
- master
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/tests_linux_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,9 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
paths:
- .github/workflows/tests_linux_python.yml
- pennylane_lightning/core/src/*
- pennylane_lightning/core/src/algorithms/**
- pennylane_lightning/core/src/bindings/**
- pennylane_lightning/core/src/gates/**
- pennylane_lightning/core/src/measurements/**
- pennylane_lightning/core/src/observables/**
- pennylane_lightning/core/src/simulators/base/**
- pennylane_lightning/core/src/simulators/lightning_kokkos/**
- pennylane_lightning/core/src/simulators/lightning_qubit/**
- pennylane_lightning/core/src/utils
- pennylane_lightning/lightning_kokkos/**
- pennylane_lightning/lightning_qubit/**
- tests/**
paths-ignore:
- pennylane_lightning/core/src/simulators/lightning_gpu/**
- pennylane_lightning/lightning_gpu/**
push:
branches:
- master
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/tests_lkcuda_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@ on:
pull_request:
paths:
- .github/workflows/tests_lkcuda_cpp.yml
- pennylane_lightning/core/src/*
- pennylane_lightning/core/src/algorithms/**
- pennylane_lightning/core/src/bindings/**
- pennylane_lightning/core/src/gates/**
- pennylane_lightning/core/src/measurements/**
- pennylane_lightning/core/src/observables/**
- pennylane_lightning/core/src/simulators/base/**
- pennylane_lightning/core/src/simulators/lightning_kokkos/**
- pennylane_lightning/core/src/utils
- pennylane_lightning/core/src/**
paths-ignore:
- pennylane_lightning/core/src/simulators/lightning_gpu/**
- pennylane_lightning/core/src/simulators/lightning_qubit/**
push:
branches:
- master
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/tests_lkcuda_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,11 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
paths:
- .github/workflows/tests_lkcuda_python.yml
- pennylane_lightning/core/src/*
- pennylane_lightning/core/src/algorithms/**
- pennylane_lightning/core/src/bindings/**
- pennylane_lightning/core/src/gates/**
- pennylane_lightning/core/src/measurements/**
- pennylane_lightning/core/src/observables/**
- pennylane_lightning/core/src/simulators/base/**
- pennylane_lightning/core/src/simulators/lightning_kokkos/**
- pennylane_lightning/core/src/utils
- pennylane_lightning/lightning_kokkos/**
- tests/**
paths-ignore:
- pennylane_lightning/core/src/simulators/lightning_gpu/**
- pennylane_lightning/core/src/simulators/lightning_qubit/**
- pennylane_lightning/lightning_gpu/**
- pennylane_lightning/lightning_qubit/**
push:
branches:
- master
Expand Down

0 comments on commit 7bc6402

Please sign in to comment.