Repository navigation
A few improvements #35
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: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - name: Cache vcpkg binaries | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/vcpkg | |
| key: vcpkg-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('vcpkg.json') }} | |
| restore-keys: vcpkg-${{ runner.os }}-${{ runner.arch }}- | |
| - name: Install vcpkg and C++ dependencies | |
| run: | | |
| git clone https://github.com/microsoft/vcpkg.git $HOME/vcpkg | |
| $HOME/vcpkg/bootstrap-vcpkg.sh -disableMetrics | |
| VCPKG_ROOT=$HOME/vcpkg $HOME/vcpkg/vcpkg install --no-print-usage | |
| - name: Install package | |
| run: uv sync | |
| env: | |
| VCPKG_ROOT: /home/runner/vcpkg | |
| - name: Run tests | |
| run: uv run pytest tests/ |