Skip to content

Commit

Permalink
ci: adjust the conditions for triggering tests
Browse files Browse the repository at this point in the history
Tests for `yara-x-py` are run only when pushing changes to the `yara-x-py` directory. Also fixed a typo in `tests.yaml`.
  • Loading branch information
plusvic committed Oct 7, 2023
1 parent b51ec70 commit 55c95cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ name: Python extension

on:
push:
branches:
- "*"
tags:
- "*"
pull_request:
workflow_dispatch:
paths:
- 'yara-x-py/**'

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Tests
on:
pull_request:
types: [ opened, reopened, synchronized, ready_for_review ]
types: [ opened, reopened, synchronize, ready_for_review ]
push:
jobs:
test:
Expand Down

0 comments on commit 55c95cf

Please sign in to comment.