@@ -47,29 +47,25 @@ jobs:
4747 run : echo "$GITHUB_CONTEXT"
4848 - uses : actions/checkout@v5
4949 - name : Set up Python
50- uses : actions/setup-python@v5
50+ uses : actions/setup-python@v6
5151 with :
5252 python-version : ${{ matrix.python-version }}
5353 # Issue ref: https://github.com/actions/setup-python/issues/436
5454 # cache: "pip"
5555 # cache-dependency-path: pyproject.toml
56- - uses : actions/cache@v4
57- id : cache
58- with :
59- path : ${{ env.pythonLocation }}
60- key : ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-tests.txt') }}-{{ matrix.pydantic-version }}
56+ - name : Install uv
57+ uses : astral-sh/setup-uv@v7
6158 # Allow debugging with tmate
6259 - name : Setup tmate session
6360 uses : mxschmitt/action-tmate@v3
6461 if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
6562 with :
6663 limit-access-to-actor : true
6764 - name : Install Dependencies
68- if : steps.cache.outputs.cache-hit != 'true'
69- run : pip install -r requirements-tests.txt
65+ run : uv sync --locked --all-extras --dev
7066 - name : Install Pydantic v1
7167 if : matrix.pydantic-version == 'v1'
72- run : pip install "pydantic<2.0.0"
68+ run : uv pip install "pydantic<2.0.0"
7369 - name : Lint
7470 run : bash scripts/lint.sh
7571 - run : mkdir coverage
9490 GITHUB_CONTEXT : ${{ toJson(github) }}
9591 run : echo "$GITHUB_CONTEXT"
9692 - uses : actions/checkout@v5
97- - uses : actions/setup-python@v5
93+ - uses : actions/setup-python@v6
9894 with :
99- python-version : ' 3.8 '
95+ python-version-file : " pyproject.toml "
10096 # Issue ref: https://github.com/actions/setup-python/issues/436
10197 # cache: "pip"
10298 # cache-dependency-path: pyproject.toml
0 commit comments