fix: update orjson dependency to version 3.11.0 (#1228) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: codspeed-benchmarks | |
| on: | |
| push: | |
| branches: | |
| - "main" # or "master" | |
| pull_request: | |
| # `workflow_dispatch` allows CodSpeed to trigger backtest | |
| # performance analysis in order to generate initial data. | |
| workflow_dispatch: | |
| env: | |
| UV_SYSTEM_PYTHON: 1 | |
| jobs: | |
| benchmarks: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.7.5" | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.9" | |
| - name: Install dependencies with uv | |
| run: | | |
| echo "# Installing Dependencies" | |
| uv pip install -r pyproject.toml --group dev --group test | |
| echo "# Installing Project" | |
| 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: | | |
| echo "::group::Checking dependencies" | |
| echo "# Checking dependencies, If not found any then it will stop the job." | |
| which uv python pip maturin pytest | |
| echo "# Checking pip list" | |
| pip list | |
| echo "::endgroup::" | |
| echo "::group::Running & Installing build" | |
| maturin build -i python --universal2 --out dist | |
| uv pip install --no-index --find-links=dist/ robyn | |
| echo "::endgroup::" | |
| - name: Run benchmarks | |
| uses: CodSpeedHQ/action@v3.5.0 | |
| with: | |
| token: ${{ secrets.CODSPEED_TOKEN }} | |
| run: pytest integration_tests --codspeed | |