use uv #5
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
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - '**' # Triggers on push to all branches | |
| pull_request: | |
| branches: | |
| - '**' # Triggers on pull request to all branches | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| #- run: cd python && python -m unittest test.py | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install | |
| - uses: ./.github/actions/setup-rust | |
| with: | |
| target: aarch64-unknown-linux-gnu | |
| version: stable | |
| - run: | | |
| sudo apt-get update && sudo apt-get install -y g++-aarch64-linux-gnu libssl-dev | |
| mkdir .cargo | |
| echo -e "[target.aarch64-unknown-linux-gnu]\nlinker = \"aarch64-linux-gnu-gcc\"" >> .cargo/config.toml | |
| - name: Build rust stuff | |
| run: cargo build --workspace --release | |
| - name: Run rust tests | |
| run: cargo test --workspace --release | |
| - name: Build python package | |
| run: maturin build --release --features abi3 | |
| working-directory: ./python | |
| - name: Test python package | |
| run: uv run python -m unittest test.py | |
| working-directory: ./python | |