@@ -21,20 +21,16 @@ jobs:
2121 PYTHON : ${{ matrix.python-version }}
2222
2323 steps :
24- - uses : actions/checkout@v2
25- - name : Set up Python ${{ matrix.python-version }}
26- uses : actions /setup-python@v2
24+ - uses : actions/checkout@v4
25+ - name : Set up Python ${{ matrix.python-version }} with uv
26+ uses :
drivendataorg /setup-python[email protected] 2727 with :
2828 python-version : ${{ matrix.python-version }}
29- - uses : actions/cache@v2
30- with :
31- path : ~/.cache/pip
32- key : ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('tests/requirements-tests.txt') }}
33- - name : Install deps
29+ cache : ' packages'
30+
31+ - name : Install dependencies
3432 run : |
35- python -m pip install --upgrade pip
36- pip install -r tests/requirements-tests.txt
37- python setup.py develop --no-deps
33+ uv sync
3834 - name : Run tests
3935 run : |
4036 pytest --cov=./ --cov-report=xml
@@ -49,19 +45,19 @@ jobs:
4945 runs-on : ubuntu-latest
5046
5147 steps :
52- - uses : actions/checkout@v2
53- - name : Set up Python
54- uses : actions/setup-python@v2
55- with :
56- python-version : " 3.9"
57- - uses : actions/cache@v2
48+ - uses : actions/checkout@v4
49+ - name : Set up Python ${{ matrix.python-version }} with uv
50+ uses :
drivendataorg/[email protected] 5851 with :
59- path : ~/.cache/pip
60- key : ${{ runner.os }}-pip-${{ hashFiles('tests/requirements-linters.txt') }}
61- - name : Install deps
52+ python-version : ${{ matrix.python-version }}
53+ cache : ' packages'
54+
55+ - name : Install dependencies
56+ run : |
57+ uv sync
58+ - name : Install linter deps
6259 run : |
63- python -m pip install --upgrade pip
64- pip install -r tests/requirements-linters.txt
60+ uv pip install -r tests/requirements-linters.txt
6561 - name : Run isort
6662 run : |
6763 isort --version
0 commit comments