@@ -12,18 +12,20 @@ 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
17
+ with :
18
+ python-version : " 3.13"
15
19
- name : Install uv
16
- uses : astral-sh/setup-uv@v6
20
+ uses : astral-sh/setup-uv@v5
17
21
with :
18
- version : " latest"
19
22
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
23
24
+ - name : Install the package and test dependencies
25
+ run : |
26
+ uv venv
27
+ uv pip install --upgrade pip
28
+ uv pip install -e '.[dev,test]'
27
29
28
30
# Consider using pre-commit.ci for open source project
29
31
- name : Run pre-commit
@@ -37,21 +39,20 @@ jobs:
37
39
fail-fast : false
38
40
runs-on : ${{ matrix.os }}
39
41
steps :
40
-
41
42
- name : Checkout
42
43
uses : actions/checkout@v4
43
-
44
+ - name : Set up Python
45
+ uses : actions/setup-python@v5
46
+ with :
47
+ python-version : ${{ matrix.python-version }}
44
48
- name : Install uv
45
- uses : astral-sh/setup-uv@v6
49
+ uses : astral-sh/setup-uv@v5
46
50
with :
47
- version : " latest"
48
51
python-version : ${{ matrix.python-version }}
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
-
52
+ - name : Install the package and test dependencies
53
+ run : |
54
+ uv venv
55
+ uv pip install --upgrade pip
56
+ uv pip install -e '.[test]'
56
57
- name : Run tests
57
58
run : uv run --no-project pytest -nauto
0 commit comments