@@ -3,6 +3,11 @@ name: CI
33on :
44 pull_request :
55 branches : [ main ]
6+ paths :
7+ - ' .github/workflows/ci.yml'
8+ - ' src/**'
9+ - ' tests/**'
10+ - ' pyproject.toml'
611
712jobs :
813 test :
@@ -30,25 +35,12 @@ jobs:
3035 - name : Checkout code
3136 uses : actions/checkout@v4
3237
33- - name : Check for file changes
34- id : changes
35- uses : dorny/paths-filter@v2
36- with :
37- filters : |
38- src:
39- - '.github/workflows/ci.yml'
40- - 'src/**'
41- - 'tests/**'
42- - 'pyproject.toml'
43-
4438 - name : Set up Python ${{ matrix.python-version }}
45- if : steps.changes.outputs.src == 'true'
4639 uses : actions/setup-python@v5
4740 with :
4841 python-version : ${{ matrix.python-version }}
4942
5043 - name : Cache pip dependencies
51- if : steps.changes.outputs.src == 'true'
5244 uses : actions/cache@v4
5345 with :
5446 path : ~/.cache/pip
5850 ${{ matrix.os }}-pip-
5951
6052 - name : Install dependencies
61- if : steps.changes.outputs.src == 'true'
6253 run : |
6354 python -m pip install --upgrade pip
6455 # Install extras dependencies based on matrix variable
@@ -69,21 +60,20 @@ jobs:
6960 fi
7061
7162 - name : Run Unit Tests
72- if : steps.changes.outputs.src == 'true'
7363 shell : bash
7464 run : |
7565 pytest tests/ -v --cov=src/parallax --cov-report=xml
7666
7767 - name : Upload coverage to Codecov
78- if : steps.changes.outputs.src == 'true' && matrix.os == 'macos-15' && matrix.python-version == '3.11'
68+ if : matrix.os == 'macos-15' && matrix.python-version == '3.11'
7969 uses : codecov/codecov-action@v4
8070 with :
8171 file : ./coverage.xml
8272 fail_ci_if_error : false
8373 token : ${{ secrets.CODECOV_TOKEN }}
8474
8575 - name : Run E2E tests (macOS only)
86- if : steps.changes.outputs.src == 'true' && matrix.os == 'macos-26' && matrix.python-version == '3.12'
76+ if : matrix.os == 'macos-26' && matrix.python-version == '3.12'
8777 shell : bash
8878 env :
8979 TERM : xterm-256color
0 commit comments