File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -40,17 +40,12 @@ runs:
4040 - name : Install project dependencies
4141 shell : bash
4242 run : |
43- # Priority 1: matrix-provided requirements file
4443 if [ -n "${{ inputs.requirements }}" ] && [ -f "${{ inputs.requirements }}" ]; then
4544 echo "Installing from matrix requirements file: ${{ inputs.requirements }}"
4645 pip install -r "${{ inputs.requirements }}"
47-
48- # Priority 2: fallback to requirements.txt
4946 elif [ -f requirements.txt ]; then
5047 echo "Installing from default requirements.txt"
5148 pip install -r requirements.txt
52-
53- # Priority 3: no requirements found
5449 else
5550 echo "No requirements file provided or found."
5651 fi
@@ -61,13 +56,11 @@ runs:
6156 echo "Running tox."
6257 tox || code=$?
6358
64- # Exit code 5 = no tests collected → treat as success
6559 if [ "${code:-0}" = "5" ]; then
6660 echo "No tests collected — treating as success."
6761 exit 0
6862 fi
6963
70- # Any other non-zero exit code = real failure
7164 if [ -n "${code:-}" ] && [ "$code" != "0" ]; then
7265 echo "Tox failed with exit code $code"
7366 exit "$code"
You can’t perform that action at this time.
0 commit comments