2222 default : ' false'
2323
2424env :
25- UV_SYSTEM_PYTHON : 1
25+ UV_NO_SYNC : true
2626
2727jobs :
2828 test :
4545 os : windows-latest
4646 fail-fast : false
4747 runs-on : ${{ matrix.os }}
48+ env :
49+ UV_PYTHON : ${{ matrix.python-version }}
4850 steps :
4951 - name : Dump GitHub context
5052 env :
@@ -58,22 +60,21 @@ jobs:
5860 - name : Setup uv
5961 uses : astral-sh/setup-uv@v7
6062 with :
61- version : " 0.4.15"
6263 enable-cache : true
6364 cache-dependency-glob : |
64- requirements**.txt
6565 pyproject.toml
66+ uv.lock
6667 # Allow debugging with tmate
6768 - name : Setup tmate session
6869 uses : mxschmitt/action-tmate@v3
6970 if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
7071 with :
7172 limit-access-to-actor : true
7273 - name : Install Dependencies
73- run : uv pip install -r requirements- tests.txt
74+ run : uv sync --locked --no-dev --group tests --extra standard
7475 - run : mkdir coverage
7576 - name : Test
76- run : bash scripts/test.sh
77+ run : uv run bash scripts/test.sh
7778 env :
7879 COVERAGE_FILE : coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
7980 CONTEXT : ${{ runner.os }}-py${{ matrix.python-version }}
@@ -95,32 +96,32 @@ jobs:
9596 - uses : actions/checkout@v6
9697 - uses : actions/setup-python@v6
9798 with :
98- python-version : ' 3.9 '
99+ python-version-file : " .python-version "
99100 - name : Setup uv
100101 uses : astral-sh/setup-uv@v7
101102 with :
102- version : " 0.4.15"
103103 enable-cache : true
104104 cache-dependency-glob : |
105- requirements**.txt
106105 pyproject.toml
106+ uv.lock
107107 - name : Get coverage files
108108 uses : actions/download-artifact@v7
109109 with :
110110 pattern : coverage-*
111111 path : coverage
112112 merge-multiple : true
113- - run : uv pip install -r requirements-tests.txt
113+ - name : Install dependencies
114+ run : uv sync --locked --no-dev --group tests --extra standard
114115 - run : ls -la coverage
115- - run : coverage combine coverage
116- - run : coverage html --title "Coverage for ${{ github.sha }}"
116+ - run : uv run coverage combine coverage
117+ - run : uv run coverage html --title "Coverage for ${{ github.sha }}"
117118 - name : Store coverage HTML
118119 uses : actions/upload-artifact@v6
119120 with :
120121 name : coverage-html
121122 path : htmlcov
122123 include-hidden-files : true
123- - run : coverage report --fail-under=100
124+ - run : uv run coverage report --fail-under=100
124125
125126 # https://github.com/marketplace/actions/alls-green#why
126127 check : # This job does nothing and is only used for the branch protection
0 commit comments