Skip to content

A few improvements

A few improvements #35

Workflow file for this run

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/