@@ -47,17 +47,19 @@ 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+ - name : Install uv
57+ uses : astral-sh/setup-uv@v7
5658 - uses : actions/cache@v4
5759 id : cache
5860 with :
5961 path : ${{ env.pythonLocation }}
60- key : ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'requirements-tests.txt ') }}-{{ matrix.pydantic-version }}
62+ key : ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml', 'uv.lock ') }}-{{ matrix.pydantic-version }}
6163 # Allow debugging with tmate
6264 - name : Setup tmate session
6365 uses : mxschmitt/action-tmate@v3
@@ -66,10 +68,10 @@ jobs:
6668 limit-access-to-actor : true
6769 - name : Install Dependencies
6870 if : steps.cache.outputs.cache-hit != 'true'
69- run : pip install -r requirements-tests.txt
71+ run : uv sync --locked --all-extras --dev
7072 - name : Install Pydantic v1
7173 if : matrix.pydantic-version == 'v1'
72- run : pip install "pydantic<2.0.0"
74+ run : uv pip install "pydantic<2.0.0"
7375 - name : Lint
7476 run : bash scripts/lint.sh
7577 - run : mkdir coverage
9496 GITHUB_CONTEXT : ${{ toJson(github) }}
9597 run : echo "$GITHUB_CONTEXT"
9698 - uses : actions/checkout@v5
97- - uses : actions/setup-python@v5
99+ - uses : actions/setup-python@v6
98100 with :
99- python-version : ' 3.8 '
101+ python-version-file : " pyproject.toml "
100102 # Issue ref: https://github.com/actions/setup-python/issues/436
101103 # cache: "pip"
102104 # cache-dependency-path: pyproject.toml
0 commit comments