@@ -15,56 +15,54 @@ jobs:
1515 - name : Checkout repository
1616 uses : actions/checkout@v4
1717
18- - name : Setup Python
19- uses : actions/setup-python@v5
20- with :
21- python-version : " 3.13"
18+ - name : Install uv
19+ uses : astral-sh/setup-uv@v7
2220
2321 - name : Run validation script
2422 run : |
25- python scripts/validate-exercise-config.py
23+ uv run python scripts/validate-exercise-config.py
2624
2725 unit_tests :
2826 runs-on : ubuntu-latest
2927 steps :
3028 - name : Checkout repository
3129 uses : actions/checkout@v4
32- - name : Setup Python
33- uses : actions /setup-python@v5
30+ - name : Install uv
31+ uses : astral-sh /setup-uv@v7
3432 with :
35- python-version : " 3.13 "
33+ enable-cache : true
3634 - name : Install dependencies
3735 run : |
38- pip install -r requirements.txt
36+ uv sync --locked --group test
3937 - name : Set up Git
4038 run : |
4139 git config --global user.name "github-actions"
4240 git config --global user.email "github-actions@github.com"
4341 git config --global init.defaultBranch main
4442 - name : Run unit tests
4543 run : |
46- python -m pytest -s -vv
44+ uv run pytest -s -vv
4745
4846 mypy :
4947 runs-on : ubuntu-latest
5048 steps :
5149 - name : Checkout repository
5250 uses : actions/checkout@v4
53- - name : Setup Python
54- uses : actions /setup-python@v5
51+ - name : Install uv
52+ uses : astral-sh /setup-uv@v7
5553 with :
56- python-version : " 3.13 "
54+ enable-cache : true
5755 - name : Install dependencies
5856 run : |
59- pip install -r requirements.txt
57+ uv sync --locked --group dev --group test
6058 - name : Set up Git
6159 run : |
6260 git config --global user.name "github-actions"
6361 git config --global user.email "github-actions@github.com"
6462 git config --global init.defaultBranch main
6563 - name : Run mypy
6664 run : |
67- python -m mypy .
65+ uv run mypy .
6866
6967 format :
7068 runs-on : ubuntu-latest
@@ -75,17 +73,17 @@ jobs:
7573 with :
7674 ref : main
7775 fetch-depth : 0
78- - name : Setup Python
79- uses : actions /setup-python@v5
76+ - name : Install uv
77+ uses : astral-sh /setup-uv@v7
8078 with :
81- python-version : " 3.13 "
79+ enable-cache : true
8280 - name : Install dependencies
8381 run : |
84- pip install -r requirements.txt
82+ uv sync --locked --group dev
8583 - name : Run formatter using ruff
8684 run : |
87- ruff check --fix
88- ruff format
85+ uv run ruff check --fix
86+ uv run ruff format
8987 - name : Saving changes
9088 run : |
9189 git config --global user.name "github-actions"
0 commit comments