Skip to content

Commit

Permalink
fix bencher
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Sep 15, 2024
1 parent c918547 commit f7356a5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/Bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@ jobs:
BENCHER_TESTBED: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bencherdev/bencher@main

- uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Create virtual environment
run: |
python -m venv venv
- uses: bencherdev/bencher@main
python-version: ${{ matrix.python-version }}
- name: Restore uv cache
uses: actions/cache@v4
with:
path: ${{ env.UV_CACHE_DIR }}
key: uv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('uv.lock') }}
uv-${{ runner.os }}
- name: Install tzfpy and test
shell: bash
run: |
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements_dev.txt
maturin develop --release --extras=pytz
# pytest | tee benchmark_result.txt
uv sync
source .venv/bin/activate
bencher run \
--file results.json \
--branch "$GITHUB_REF_NAME" \
Expand Down

0 comments on commit f7356a5

Please sign in to comment.