Skip to content

Commit

Permalink
ENH: Run CI only if relevant files are modified (huggingface#1309)
Browse files Browse the repository at this point in the history
* Update tests.yml

* Update .github/workflows/tests.yml
  • Loading branch information
younesbelkada authored and Andrew Lapp committed May 10, 2024
1 parent 3fa9fcb commit 6ab51c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
paths:
# Run only when relevant files are modified
- "trl/**.py"
- "examples/**.py"
- "scripts/**.py"
- ".github/**.yml"
- "tests/**.py"

jobs:
check_code_quality:
Expand Down Expand Up @@ -72,4 +79,4 @@ jobs:
pip install .[test]
- name: Test with pytest
run: |
make test
make test

0 comments on commit 6ab51c0

Please sign in to comment.