File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -14,28 +14,28 @@ jobs:
14
14
BENCHER_TESTBED : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v4
17
+ - uses : bencherdev/bencher@main
17
18
18
- - uses : actions-rust-lang/setup-rust-toolchain@v1
19
-
19
+ - name : Set up uv
20
+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
20
21
- name : Set up Python
21
22
uses : actions/setup-python@v5
22
23
with :
23
- python-version : 3.12
24
-
25
- - name : Create virtual environment
26
- run : |
27
- python -m venv venv
28
-
29
- - uses : bencherdev/bencher@main
24
+ python-version : ${{ matrix.python-version }}
25
+ - name : Restore uv cache
26
+ uses : actions/cache@v4
27
+ with :
28
+ path : ${{ env.UV_CACHE_DIR }}
29
+ key : uv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('uv.lock') }}
30
+ restore-keys : |
31
+ uv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('uv.lock') }}
32
+ uv-${{ runner.os }}
30
33
31
34
- name : Install tzfpy and test
32
35
shell : bash
33
36
run : |
34
- source venv/bin/activate
35
- pip install --upgrade pip
36
- pip install -r requirements_dev.txt
37
- maturin develop --release --extras=pytz
38
- # pytest | tee benchmark_result.txt
37
+ uv sync
38
+ source .venv/bin/activate
39
39
bencher run \
40
40
--file results.json \
41
41
--branch "$GITHUB_REF_NAME" \
You can’t perform that action at this time.
0 commit comments