2121 required : false
2222 default : ' false'
2323
24+ env :
25+ UV_SYSTEM_PYTHON : 1
26+
2427jobs :
2528 test :
2629 runs-on : ubuntu-latest
@@ -43,23 +46,22 @@ jobs:
4346 uses : actions/setup-python@v5
4447 with :
4548 python-version : ${{ matrix.python-version }}
46- # Issue ref: https://github.com/actions/setup-python/issues/436
47- # cache: "pip"
48- # cache-dependency-path: pyproject.toml
49- - uses : actions/cache@v4
50- id : cache
49+ - name : Setup uv
50+ uses : astral-sh/setup-uv@v3
5151 with :
52- path : ${{ env.pythonLocation }}
53- key : ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-tests.txt') }}
52+ version : " 0.4.15"
53+ enable-cache : true
54+ cache-dependency-glob : |
55+ requirements**.txt
56+ pyproject.toml
5457 # Allow debugging with tmate
5558 - name : Setup tmate session
5659 uses : mxschmitt/action-tmate@v3
5760 if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
5861 with :
5962 limit-access-to-actor : true
6063 - name : Install Dependencies
61- if : steps.cache.outputs.cache-hit != 'true'
62- run : pip install -r requirements-tests.txt
64+ run : uv pip install -r requirements-tests.txt
6365 - name : Lint
6466 run : bash scripts/lint.sh
6567 - run : mkdir coverage
@@ -87,16 +89,21 @@ jobs:
8789 - uses : actions/setup-python@v5
8890 with :
8991 python-version : ' 3.8'
90- # Issue ref: https://github.com/actions/setup-python/issues/436
91- # cache: "pip"
92- # cache-dependency-path: pyproject.toml
92+ - name : Setup uv
93+ uses : astral-sh/setup-uv@v3
94+ with :
95+ version : " 0.4.15"
96+ enable-cache : true
97+ cache-dependency-glob : |
98+ requirements**.txt
99+ pyproject.toml
93100 - name : Get coverage files
94101 uses : actions/download-artifact@v4
95102 with :
96103 pattern : coverage-*
97104 path : coverage
98105 merge-multiple : true
99- - run : pip install coverage[toml]
106+ - run : uv pip install -r requirements-tests.txt
100107 - run : ls -la coverage
101108 - run : coverage combine coverage
102109 - run : coverage report
0 commit comments