Commit d78ef40 Olivier
committed
1 parent 118df82 commit d78ef40 Copy full SHA for d78ef40
File tree 3 files changed +35
-22
lines changed
3 files changed +35
-22
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,23 @@ jobs:
21
21
- uses : actions/checkout@v4
22
22
with :
23
23
submodules : true
24
+ - name : Install uv
25
+ uses : astral-sh/setup-uv@v3
26
+
24
27
- name : Set up Python ${{ matrix.python-version }}
25
28
uses : actions/setup-python@v5
26
29
with :
27
30
python-version : ${{ matrix.python-version }}
31
+
32
+ - name : Install the project
33
+ run : uv sync --all-extras --dev
34
+
28
35
- name : Install dependencies
29
36
run : |
30
- python -m pip install --upgrade pip
31
- python -m pip install pytest mypy ruff
32
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33
- if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi
34
- - name : Test with pytest
35
- run : |
36
- pytest -v -s
37
+ uv tool install mypy
38
+ uv tool install ruff
39
+ - name : Run tests
40
+ run : uv run pytest -v -s tests
37
41
38
42
lint :
39
43
runs-on : ubuntu-latest
@@ -44,11 +48,12 @@ jobs:
44
48
- name : Set up Python ${{ matrix.python-version }}
45
49
uses : actions/setup-python@v5
46
50
with :
47
- python-version : " 3.12"
48
- - name : Install dependencies
51
+ python-version : " 3.13"
52
+
53
+ - name : Install the project
49
54
run : |
50
- python -m pip install --upgrade pip
51
- python -m pip install pre-commit
55
+ uv sync --all-extras --dev
56
+ uv tool install pre-commit
52
57
- name : Lint with ruff
53
58
run : |
54
- pre-commit run -a
59
+ uvx pre-commit run -a
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" hatchling" ]
3
+ build-backend = " hatchling.build"
4
+
1
5
[project ]
2
6
version = " 1.1.5"
3
7
name = " asyncua"
@@ -31,6 +35,20 @@ dependencies = [
31
35
" wait_for2==0.3.2" ,
32
36
]
33
37
38
+ [tool .uv ]
39
+ dev-dependencies = [
40
+ " pytest" ,
41
+ " pytest-asyncio == 0.21.2" ,
42
+ " coverage" ,
43
+ " pytest-cov" ,
44
+ " pytest-mock" ,
45
+ " asynctest" ,
46
+ " types-aiofiles" ,
47
+ " types-pyOpenSSL" ,
48
+ " types-python-dateutil" ,
49
+ " types-pytz" ,
50
+ ]
51
+
34
52
[project .scripts ]
35
53
uabrowse = " asyncua.tools:uals"
36
54
uacall = " asyncua.tools:uacall"
You can’t perform that action at this time.
0 commit comments