Switch CI/CD to uv #59
Workflow file for this run
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: Build wheels and perform benchmarks | |
on: | |
pull_request: | |
branches: [develop, master] | |
push: | |
branches: [ci-debug] | |
jobs: | |
build_wheels: | |
name: Build wheels on for various systems | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: '3.12' | |
- name: Build wheels | |
run: | | |
pip wheel --no-deps -w dist . | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: wheel | |
path: dist/ | |
benchmark: | |
name: Benchmark tests | |
needs: [build_wheels] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: wheel | |
path: dist/ | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
python-version: '3.12' | |
- name: Set up Python | |
run: uv python install | |
- name: Install wheel | |
run: uv pip install $(ls -1 dist/*.whl) | |
- name: Install pytest | |
run: uv pip install pytest pytest-cov | |
- name: Generate test signal | |
run: uv run benchmarks/generate_time_signal.py | |
- name: Run benchmarks | |
run: pytest --no-cov -rP benchmarks |