|
1 | 1 | # Runs unit tests with both current and minimum supported dependency versions
|
2 | 2 | # to ensure compatibility across the supported range.
|
3 | 3 |
|
4 |
| -name: '🧪 Unit Testing' |
| 4 | +name: "🧪 Unit Testing" |
5 | 5 |
|
6 | 6 | on:
|
7 | 7 | workflow_call:
|
@@ -30,29 +30,29 @@ jobs:
|
30 | 30 | working-directory: ${{ inputs.working-directory }}
|
31 | 31 | runs-on: ubuntu-latest
|
32 | 32 | timeout-minutes: 20
|
33 |
| - name: 'Python ${{ inputs.python-version }}' |
| 33 | + name: "Python ${{ inputs.python-version }}" |
34 | 34 | steps:
|
35 |
| - - name: '📋 Checkout Code' |
| 35 | + - name: "📋 Checkout Code" |
36 | 36 | uses: actions/checkout@v5
|
37 | 37 |
|
38 |
| - - name: '🐍 Set up Python ${{ inputs.python-version }} + UV' |
| 38 | + - name: "🐍 Set up Python ${{ inputs.python-version }} + UV" |
39 | 39 | uses: "./.github/actions/uv_setup"
|
40 | 40 | id: setup-python
|
41 | 41 | with:
|
42 | 42 | python-version: ${{ inputs.python-version }}
|
43 | 43 | cache-suffix: test-${{ inputs.working-directory }}
|
44 | 44 | working-directory: ${{ inputs.working-directory }}
|
45 | 45 |
|
46 |
| - - name: '📦 Install Test Dependencies' |
| 46 | + - name: "📦 Install Test Dependencies" |
47 | 47 | shell: bash
|
48 | 48 | run: uv sync --group test --dev
|
49 | 49 |
|
50 |
| - - name: '🧪 Run Core Unit Tests' |
| 50 | + - name: "🧪 Run Core Unit Tests" |
51 | 51 | shell: bash
|
52 | 52 | run: |
|
53 | 53 | make test
|
54 | 54 |
|
55 |
| - - name: '🔍 Calculate Minimum Dependency Versions' |
| 55 | + - name: "🔍 Calculate Minimum Dependency Versions" |
56 | 56 | working-directory: ${{ inputs.working-directory }}
|
57 | 57 | id: min-version
|
58 | 58 | shell: bash
|
|
63 | 63 | echo "min-versions=$min_versions" >> "$GITHUB_OUTPUT"
|
64 | 64 | echo "min-versions=$min_versions"
|
65 | 65 |
|
66 |
| - - name: '🧪 Run Tests with Minimum Dependencies' |
| 66 | + - name: "🧪 Run Tests with Minimum Dependencies" |
67 | 67 | if: ${{ steps.min-version.outputs.min-versions != '' }}
|
68 | 68 | env:
|
69 | 69 | MIN_VERSIONS: ${{ steps.min-version.outputs.min-versions }}
|
|
72 | 72 | make tests
|
73 | 73 | working-directory: ${{ inputs.working-directory }}
|
74 | 74 |
|
75 |
| - - name: '🧹 Verify Clean Working Directory' |
| 75 | + - name: "🧹 Verify Clean Working Directory" |
76 | 76 | shell: bash
|
77 | 77 | run: |
|
78 | 78 | set -eu
|
|
83 | 83 | # grep will exit non-zero if the target message isn't found,
|
84 | 84 | # and `set -e` above will cause the step to fail.
|
85 | 85 | echo "$STATUS" | grep 'nothing to commit, working tree clean'
|
86 |
| -
|
0 commit comments