Skip to content

Commit d29608d

Browse files
authored
ci: refactor and clean codspeed ci (#1230)
* Removed UV_SYSTEM_PYTHON env, coz no need for that. * Using uv sync with venv to install all dependencies + project * Removed macos target, coz its running on ubuntu server * Cleaned up unnecessary code * Some speed improvements
1 parent 058ee46 commit d29608d

File tree

1 file changed

+9
-30
lines changed

1 file changed

+9
-30
lines changed

.github/workflows/codspeed.yml

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,52 +9,31 @@ on:
99
# performance analysis in order to generate initial data.
1010
workflow_dispatch:
1111

12-
env:
13-
UV_SYSTEM_PYTHON: 1
1412

1513
jobs:
1614
benchmarks:
1715
runs-on: ubuntu-22.04
1816
steps:
1917
- uses: actions/checkout@v4
2018

19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.9"
23+
2124
- name: Install uv
2225
uses: astral-sh/setup-uv@v6
2326
with:
2427
version: "0.7.5"
2528

26-
- uses: actions/setup-python@v5
27-
with:
28-
python-version: "3.9"
29-
30-
- name: Install dependencies with uv
31-
run: |
32-
echo "# Installing Dependencies"
33-
uv pip install -r pyproject.toml --group dev --group test
34-
echo "# Installing Project"
35-
uv pip install -e .
36-
37-
- name: Add macos target
38-
if: matrix.os == 'macos'
39-
run: rustup target add aarch64-apple-darwin
40-
41-
- name: Setup Rust part of the project
29+
- name: Install the project + deps.
4230
run: |
43-
echo "::group::Checking dependencies"
44-
echo "# Checking dependencies, If not found any then it will stop the job."
45-
which uv python pip maturin pytest
46-
echo "# Checking pip list"
47-
pip list
48-
echo "::endgroup::"
49-
50-
echo "::group::Running & Installing build"
51-
maturin build -i python --universal2 --out dist
52-
uv pip install --no-index --find-links=dist/ robyn
53-
echo "::endgroup::"
31+
echo "# Syncing Project + Installing project."
32+
uv sync --dev --group test --verbose
5433
5534
- name: Run benchmarks
5635
uses: CodSpeedHQ/[email protected]
5736
with:
5837
token: ${{ secrets.CODSPEED_TOKEN }}
59-
run: pytest integration_tests --codspeed
38+
run: uv run pytest integration_tests --codspeed
6039

0 commit comments

Comments
 (0)