@@ -3,21 +3,29 @@ name: Testing Central Dogma Python
3
3
on :
4
4
push :
5
5
branches :
6
- - main
6
+ - main
7
7
pull_request :
8
8
9
+ env :
10
+ UV_SYSTEM_PYTHON : 1
11
+ UV_PYTHON_PREFERENCE : system
12
+
9
13
jobs :
10
14
docs :
11
15
runs-on : ubuntu-latest
12
16
steps :
13
17
- uses : actions/checkout@v4
18
+ - name : Install uv
19
+ uses : astral-sh/setup-uv@v3
20
+ with :
21
+ version : " 0.5.1"
14
22
- name : Set up Python
15
23
uses : actions/setup-python@v5
16
24
with :
17
- python-version : 3.9
25
+ python-version : 3.13
18
26
- name : Install dependencies
19
- run : pip install -e '.[docs]'
20
- - name : Build docs
27
+ run : uv pip install -e '.[docs]'
28
+ - name : Build docs
21
29
run : sphinx-build docs ./docs/_build/html/
22
30
23
31
linter :
35
43
strategy :
36
44
matrix :
37
45
os : [ubuntu-latest]
38
- python-version : ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9", "pypy3.10"]
46
+ python-version :
47
+ ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9", "pypy3.10"]
39
48
40
49
steps :
41
50
- uses : actions/checkout@v4
@@ -46,14 +55,16 @@ jobs:
46
55
uses : actions/setup-python@v5
47
56
with :
48
57
python-version : ${{ matrix.python-version }}
49
- cache : " pip"
50
- cache-dependency-path : " **/pyproject.toml"
58
+
59
+ - name : Install uv
60
+ uses : astral-sh/setup-uv@v3
61
+ with :
62
+ version : " 0.5.1"
63
+ enable-cache : true
51
64
52
65
- name : Install dependencies
53
66
run : |
54
- python -m pip install --upgrade pip
55
- pip install -e .
56
- pip install -e '.[dev]'
67
+ uv pip install -r pyproject.toml --extra dev
57
68
58
69
- name : Test with pytest
59
70
run : |
@@ -71,22 +82,25 @@ jobs:
71
82
strategy :
72
83
matrix :
73
84
os : [macos-latest, windows-latest]
74
- python-version : ["3.9", "3.10", "3.11","3.12", "3.13", "pypy3.9", "pypy3.10"]
85
+ python-version :
86
+ ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9", "pypy3.10"]
75
87
76
88
steps :
77
89
- uses : actions/checkout@v4
90
+ - name : Install uv
91
+ uses : astral-sh/setup-uv@v3
92
+ with :
93
+ version : " 0.5.1"
94
+ enable-cache : true
95
+
78
96
- name : Set up Python ${{ matrix.python-version }}
79
97
uses : actions/setup-python@v5
80
98
with :
81
99
python-version : ${{ matrix.python-version }}
82
- cache : " pip"
83
- cache-dependency-path : " **/pyproject.toml"
84
100
85
101
- name : Install dependencies
86
102
run : |
87
- python -m pip install --upgrade pip
88
- pip install -e .
89
- pip install -e '.[dev]'
103
+ uv pip install -r pyproject.toml --extra dev
90
104
91
105
- name : Test with pytest
92
106
run : |
0 commit comments