Skip to content

Commit

Permalink
chore: fixing skip test on certain commits [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed May 7, 2024
1 parent 7e55c7e commit 4dfe4cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ jobs:
test:
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:
${{ !startsWith(github.event.head_commit.message, 'docs:') &&
!startsWith(github.event.head_commit.message, 'style:') }}
${{ (!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

0 comments on commit 4dfe4cf

Please sign in to comment.