File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 9595
9696 - name : Run tests with pytest
9797 # Run pytest with verbose output
98- # Even without tests, pytest will exit successfully (0 tests collected)
99- run : pytest -v
98+ # Exit code 5 (no tests collected) is treated as success
99+ run : |
100+ pytest -v || if [ $? -eq 5 ]; then exit 0; else exit $?; fi
100101
101102 # Job 4: Test Suite - Pixi Workflow
102103 # Pixi-based testing for projects using pixi.toml
@@ -131,7 +132,9 @@ jobs:
131132 # py311 = ["py311", "test"]
132133 # [feature.test.tasks]
133134 # test = "pytest -v"
134- run : pixi run -e ${{ matrix.environment }} test
135+ # Note: Exit code 5 (no tests collected) is treated as success
136+ run : |
137+ pixi run -e ${{ matrix.environment }} test || if [ $? -eq 5 ]; then exit 0; else exit $?; fi
135138
136139 # Job 5: Build Verification
137140 # Ensures the package can be built successfully
You can’t perform that action at this time.
0 commit comments