Skip to content

Make evaluator properties are cached #107

Make evaluator properties are cached

Make evaluator properties are cached #107

Workflow file for this run

name: Run test
on: [push, pull_request]
jobs:
run-tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python: ['3.11', '3.12', '3.13']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python }}
cache: true
- name: Setup rust
uses: dtolnay/rust-toolchain@stable
- name: Run pre-commit hooks
uses: pre-commit/action@v3.0.1
- name: Install project
run: pdm install
- name: Run unit tests
run: pdm run pytest --cov python
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
if: ${{ matrix.python == '3.13' }}
env:
CIBW_SKIP: '*-musllinux_i686'
CIBW_BEFORE_BUILD: rustup show
CIBW_BEFORE_BUILD_LINUX: >
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y &&
rustup show
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_TERM_COLOR="always"'