File tree Expand file tree Collapse file tree 2 files changed +23
-13
lines changed Expand file tree Collapse file tree 2 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,18 @@ jobs:
12
12
- name : Checkout Code Repository
13
13
uses : actions/checkout@v4
14
14
15
- - name : Set up Python
16
- uses : actions /setup-python@v5
15
+ - name : Install uv
16
+ uses : astral-sh /setup-uv@v6
17
17
with :
18
+ version : " latest"
18
19
python-version : " 3.13"
20
+ activate-environment : true
21
+ env :
22
+ UV_VENV_SEED : 1
23
+
24
+ - name : Install Dependencies
25
+ run : uv sync --extra dev --extra test
26
+
19
27
20
28
# Consider using pre-commit.ci for open source project
21
29
- name : Run pre-commit
@@ -29,20 +37,21 @@ jobs:
29
37
fail-fast : false
30
38
runs-on : ${{ matrix.os }}
31
39
steps :
40
+
32
41
- name : Checkout
33
42
uses : actions/checkout@v4
34
- - name : Set up Python
35
- uses : actions/setup-python@v5
36
- with :
37
- python-version : ${{ matrix.python-version }}
43
+
38
44
- name : Install uv
39
- uses : astral-sh/setup-uv@v5
45
+ uses : astral-sh/setup-uv@v6
40
46
with :
47
+ version : " latest"
41
48
python-version : ${{ matrix.python-version }}
42
- - name : Install the package and test dependencies
43
- run : |
44
- uv venv
45
- uv pip install --upgrade pip
46
- uv pip install -e '.[test]'
49
+ activate-environment : true
50
+ env :
51
+ UV_VENV_SEED : 1
52
+
53
+ - name : Install Dependencies
54
+ run : uv sync --extra dev --extra test
55
+
47
56
- name : Run tests
48
57
run : uv run --no-project pytest -nauto
Original file line number Diff line number Diff line change @@ -35,8 +35,9 @@ cli = [
35
35
]
36
36
dev = [
37
37
" check-manifest" ,
38
+ " mypy==1.15.0" , # https://github.com/python/mypy
38
39
# Pre Commit Hooks
39
- " pre-commit>=4,<5" ,
40
+ " pre-commit>=4,<5" , # https://github.com/pre-commit/pre-commit
40
41
# Linting
41
42
" ruff>=0.10,<1.0" ,
42
43
]
You can’t perform that action at this time.
0 commit comments