@@ -11,50 +11,47 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v4
14- - uses : actions/setup-python@v5
14+
15+ - name : Install uv
16+ uses : astral-sh/setup-uv@v5
1517 with :
18+ version : " 0.5.25"
1619 python-version : ' 3.11'
17- cache : ' pip'
18- - run : pip install "pre-commit<4.0.0"
19- - run : pre-commit --version
20- - run : pre-commit install
21- - run : pre-commit run --all-files
20+ - run : uvx pre-commit --version
21+ - run : uvx pre-commit run --all-files
2222
2323 build :
2424 needs : [linting]
2525 runs-on : ubuntu-latest
2626 strategy :
2727 matrix :
28- python-version : ["3.8 ", "3.9 ", "3.10 ", "3.11 "]
28+ python-version : ["3.9 ", "3.10 ", "3.11 ", "3.12 "]
2929
3030 steps :
3131 - uses : actions/checkout@v4
32- - name : Install poetry
33- run : |
34- python -m pip install --upgrade pip
35- pip install poetry
36- - name : Set up Python ${{ matrix.python-version }}
37- uses : actions/setup-python@v5
32+
33+ - name : Install uv
34+ uses : astral-sh/setup-uv@v5
3835 with :
36+ version : " 0.5.25"
3937 python-version : ${{ matrix.python-version }}
40- cache : poetry
4138
42- - name : Install base dependencies
43- run : poetry install
39+
40+ - name : Install the project (no extras)
41+ run : uv sync
4442
4543 - name : Unit tests with Pytest (no extras)
4644 timeout-minutes : 3
4745 run : |
48- poetry run pytest --benchmark-disable --cov=simple_parsing --cov-report=xml --cov-append
49-
46+ uv run pytest --benchmark-disable --cov=simple_parsing --cov-report=xml --cov-append
5047
5148 - name : Install extra dependencies
52- run : poetry install --all-extras
49+ run : uv sync --all-extras
5350
5451 - name : Unit tests with Pytest (with extra dependencies)
5552 timeout-minutes : 3
5653 run : |
57- poetry run pytest --benchmark-disable --cov=simple_parsing --cov-report=xml --cov-append
54+ uv run pytest --benchmark-disable --cov=simple_parsing --cov-report=xml --cov-append
5855
5956 - name : Upload coverage reports to Codecov
6057 uses : codecov/codecov-action@v4
0 commit comments