Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
python-version: '3.14'
cache: pip
cache-dependency-path: ${{ steps.copy-requirements.outputs.directory }}/**requirements.txt

Expand All @@ -27,11 +27,27 @@ runs:
- name: Run Scoring tests
shell: bash
run: |
# Do our own error handling as unittest discover exits with code 5 to
# mean "no tests found", which is fine.
set +e
python3 -m unittest discover --buffer scoring/
result=$?
set -x
if [ "$result" -ne 0 ] && [ "$result" -ne 5 ]
then
exit $result
fi

if [ -d scoring/tests/ ]
then
set +e
python3 -m unittest discover --buffer scoring/tests/
set -x
result=$?
if [ "$result" -ne 0 ] && [ "$result" -ne 5 ]
then
exit $result
fi
fi

- name: Run Compstate Validation
Expand Down