Merge pull request #60 from sign-language-processing/perf/candidate-ids #341
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: Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| name: Test Reference (Python) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v6.5.0 | |
| with: | |
| python-version: "3.12" | |
| enable-cache: true | |
| activate-environment: true | |
| - name: Install dependencies | |
| run: uv pip install ".[dev]" | |
| - name: Test Code | |
| run: uv run pytest -n auto --dist loadscope | |
| test-fast: | |
| name: Test Fast (Rust) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v6.5.0 | |
| with: | |
| python-version: "3.12" | |
| enable-cache: true | |
| activate-environment: true | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Install dependencies | |
| run: | | |
| uv pip install ".[dev]" | |
| uv pip install maturin | |
| - name: Build fast package | |
| working-directory: fast | |
| run: maturin develop --release | |
| - name: Test fast | |
| working-directory: fast | |
| run: uv run pytest ../tests/ -n auto --dist loadscope |