Skip to content

Commit f7356a5

Browse files
committed
fix bencher
1 parent c918547 commit f7356a5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/Bench.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,28 @@ jobs:
1414
BENCHER_TESTBED: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17+
- uses: bencherdev/bencher@main
1718

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
2021
- name: Set up Python
2122
uses: actions/setup-python@v5
2223
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 }}
3033
3134
- name: Install tzfpy and test
3235
shell: bash
3336
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
3939
bencher run \
4040
--file results.json \
4141
--branch "$GITHUB_REF_NAME" \

0 commit comments

Comments
 (0)