|
9 | 9 | # performance analysis in order to generate initial data. |
10 | 10 | workflow_dispatch: |
11 | 11 |
|
12 | | -env: |
13 | | - UV_SYSTEM_PYTHON: 1 |
14 | 12 |
|
15 | 13 | jobs: |
16 | 14 | benchmarks: |
17 | 15 | runs-on: ubuntu-22.04 |
18 | 16 | steps: |
19 | 17 | - uses: actions/checkout@v4 |
20 | 18 |
|
| 19 | + - name: Set up Python |
| 20 | + uses: actions/setup-python@v5 |
| 21 | + with: |
| 22 | + python-version: "3.9" |
| 23 | + |
21 | 24 | - name: Install uv |
22 | 25 | uses: astral-sh/setup-uv@v6 |
23 | 26 | with: |
24 | 27 | version: "0.7.5" |
25 | 28 |
|
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. |
42 | 30 | 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 |
54 | 33 |
|
55 | 34 | - name: Run benchmarks |
56 | 35 | uses: CodSpeedHQ/action@v3.5.0 |
57 | 36 | with: |
58 | 37 | token: ${{ secrets.CODSPEED_TOKEN }} |
59 | | - run: pytest integration_tests --codspeed |
| 38 | + run: uv run pytest integration_tests --codspeed |
60 | 39 |
|
0 commit comments