Skip to content

Commit

Permalink
fix: Improve action and the speed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sunglasses committed Nov 21, 2024
1 parent a831d79 commit 43d9075
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,36 @@ on:
# performance analysis in order to generate initial data.
workflow_dispatch:

env:
UV_SYSTEM_PYTHON: 1

jobs:
benchmarks:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version:
- "3.8"
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- uses: actions/setup-python@v5
with:
python-version: "3.8"


- name: Install dependencies with uv
run: |
uv venv --seed
uv add poetry
uv pip install poetry
uv run poetry export --with test --with dev --without-hashes --output requirements.txt
uv run pip install -r requirements.txt
uv run pip install -e .
uv pip install -r requirements.txt
uv pip install -e .
- name: Add macos target
if: matrix.os == 'macos'
run: rustup target add aarch64-apple-darwin
- name: Setup Rust part of the project
run: |
uv run maturin build -i python --universal2 --out dist
uv run pip install --no-index --find-links=dist/ robyn
uv pip install --no-index --find-links=dist/ robyn
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
Expand Down

0 comments on commit 43d9075

Please sign in to comment.