feat(python): add Python wrapper for Modified Equinoctial Elements #885
Workflow file for this run
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
| # SPDX-FileCopyrightText: 2024 Helge Eichhorn <git@helgeeichhorn.de> | |
| # | |
| # SPDX-License-Identifier: MPL-2.0 | |
| name: CodSpeed | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - 'crates/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| UV_PROJECT: . | |
| jobs: | |
| codspeed-python: | |
| name: Run Python benchmarks | |
| runs-on: codspeed-macro | |
| if: github.actor != 'dependabot[bot]' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Install the project | |
| run: uv sync --locked --all-extras --dev | |
| - name: Build Python wrapper | |
| uses: PyO3/maturin-action@v1 | |
| with: | |
| command: develop | |
| args: --release --uv | |
| - uses: CodSpeedHQ/action@v4 | |
| with: | |
| mode: walltime | |
| run: uv run --directory "$UV_PROJECT" pytest --codspeed crates/lox-space/tests/test_*benchmark* | |
| token: ${{ secrets.CODSPEED_TOKEN }} | |
| codspeed-rust: | |
| name: Run Rust benchmarks | |
| runs-on: codspeed-macro | |
| if: github.actor != 'dependabot[bot]' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install cargo-codspeed | |
| run: cargo install cargo-codspeed | |
| - name: Build benchmarks | |
| run: cargo codspeed build -p lox-space | |
| - uses: CodSpeedHQ/action@v4 | |
| with: | |
| mode: walltime | |
| run: cargo codspeed run -p lox-space | |
| token: ${{ secrets.CODSPEED_TOKEN }} |