diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6d2162f022..4fd69d610e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -72,4 +79,4 @@ jobs: pip install .[test] - name: Test with pytest run: | - make test \ No newline at end of file + make test