Skip to content
Merged
Show file tree
Hide file tree
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
17 changes: 15 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
push:
branches-ignore:
- main

jobs:
test:
name: Run unit tests
name: Run unit tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]

Expand All @@ -30,4 +35,12 @@ jobs:
run: uv sync

- name: Run tests
run: uv run python -m unittest discover -s tests -v
run: uv run python -m unittest discover -s tests -v 2>&1 | tee test-output.txt; exit ${PIPESTATUS[0]}

- name: Summarize results
if: always()
run: |
echo "## Test Results (Python ${{ matrix.python-version }})" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
tail -20 test-output.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
Loading
Loading