Skip to content

Commit

Permalink
chore: stop tests on docs/style [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed May 7, 2024
1 parent 116a612 commit 49de955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ jobs:
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
# don't run tests if any commits in push contain "docs:" or "style:"
if:
${{ !contains(github.push.commits.message, 'docs:') &&
!contains(github.push.commits.message, 'style:') }}
if: ${{ !contains(github.push.commits.message, 'docs:') && !contains(github.push.commits.message, 'style:') }}
needs: [pre-commit]
strategy:
# Otherwise, the workflow would stop if a single job fails. We want to
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exclude: |
.github/ISSUE_TEMPLATE/bug_report.md|
.github/ISSUE_TEMPLATE/feature_request.md|
.github/config.yml|
.github/workflows/ci.yml|
CONTRIBUTING.md|
binder/environment.yml|
templates/CHANGELOG.md.j2|
Expand Down

0 comments on commit 49de955

Please sign in to comment.