chore: minimal mypy update to openapy.py, adding dict type (#1048) #1878
This file contains 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@v3 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies with uv | |
run: | | |
uv pip install poetry | |
uv run poetry export --with test --with dev --without-hashes --output requirements.txt | |
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: | | |
maturin build -i python --universal2 --out dist | |
uv pip install --no-index --find-links=dist/ robyn | |
- name: Run benchmarks | |
uses: CodSpeedHQ/action@v2 | |
with: | |
token: ${{ secrets.CODSPEED_TOKEN }} | |
run: pytest integration_tests --codspeed |