Skip to content

Commit

Permalink
build: tests can be skipped with a -notests branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed May 31, 2023
1 parent 66dea3d commit f597744
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
tests:
name: "${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}-latest"

# Don't run tests if the branch name includes "-notests"
if: "!contains(github.ref, '-notests')"
strategy:
matrix:
os:
Expand Down Expand Up @@ -94,7 +95,8 @@ jobs:
# https://github.com/orgs/community/discussions/33579
success:
name: Tests successful
if: always()
# The tests didn't run if the branch name includes "-notests"
if: "!contains(github.ref, '-notests')"
needs:
- tests
runs-on: ubuntu-latest
Expand Down

0 comments on commit f597744

Please sign in to comment.