@@ -14,67 +14,37 @@ concurrency:
14
14
jobs :
15
15
pytest :
16
16
runs-on : ubuntu-latest
17
- defaults :
18
- run :
19
- shell : bash -el {0} # setup-miniconda requires bash
20
17
steps :
21
18
- uses : actions/checkout@v4
22
- - name : Setup conda
23
- uses : deargen/workflows/actions/setup-conda-and-uv@master
24
- - name : Cache Conda environment
25
- id : cache-conda
26
- uses : actions/cache@v4
27
- env :
28
- cache-name : cache-conda
29
- with :
30
- path : ~/miniconda3/envs/test
31
- key : ${{ runner.os }}-conda-${{ env.cache-name }}-${{ hashFiles('deps/lock/x86_64-manylinux_2_28/requirements_dev.txt') }}
32
- # restore-keys: |
33
- # ${{ runner.os }}-conda-${{ env.cache-name }}-
34
- # ${{ runner.os }}-conda-
35
- # ${{ runner.os }}-
36
- - if : steps.cache-conda.outputs.cache-hit == 'true'
37
- run : echo 'conda cache hit!'
19
+ - name : Setup python and uv
20
+ uses : deargen/workflows/actions/setup-python-and-uv@master
38
21
- uses : awalsh128/cache-apt-pkgs-action@latest
39
22
with :
40
23
packages : ripgrep
41
24
version : 1.0
42
25
- name : Install dependencies
43
- if : steps.cache-conda.outputs.cache-hit != 'true'
44
26
run : |
45
- # python -m pip install --upgrade pip
27
+ uv venv
28
+ source .venv/bin/activate
46
29
uv pip install -r deps/lock/x86_64-manylinux_2_28/requirements_dev.txt
47
30
uv pip install -e .
48
31
- name : Run pytest
49
32
uses : deargen/workflows/actions/run-pytest@master
50
33
51
34
doctest :
52
35
runs-on : ubuntu-latest
53
- defaults :
54
- run :
55
- shell : bash -el {0} # setup-miniconda requires bash
56
36
steps :
57
37
- uses : actions/checkout@v4
58
- - name : Setup conda
59
- uses : deargen/workflows/actions/setup-conda-and-uv@master
60
- - name : Cache Conda environment
61
- id : cache-conda
62
- uses : actions/cache@v4
63
- env :
64
- cache-name : cache-conda
38
+ - name : Setup python and uv
39
+ uses : deargen/workflows/actions/setup-python-and-uv@master
40
+ - uses : awalsh128/cache-apt-pkgs-action@latest
65
41
with :
66
- path : ~/miniconda3/envs/test
67
- key : ${{ runner.os }}-conda-${{ env.cache-name }}-${{ hashFiles('deps/lock/x86_64-manylinux_2_28/requirements_dev.txt') }}
68
- # restore-keys: |
69
- # ${{ runner.os }}-conda-${{ env.cache-name }}-
70
- # ${{ runner.os }}-conda-
71
- # ${{ runner.os }}-
72
- - if : steps.cache-conda.outputs.cache-hit == 'true'
73
- run : echo 'conda cache hit!'
42
+ packages : ripgrep
43
+ version : 1.0
74
44
- name : Install dependencies
75
- if : steps.cache-conda.outputs.cache-hit != 'true'
76
45
run : |
77
- # python -m pip install --upgrade pip
46
+ uv venv
47
+ source .venv/bin/activate
78
48
uv pip install -r deps/lock/x86_64-manylinux_2_28/requirements_dev.txt
79
49
uv pip install -e .
80
50
- name : Run doctest
0 commit comments