Skip to content

alternative

alternative #13

Workflow file for this run

name: CI
on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: -i ${{ matrix.python-version }} --release --out dist
working-directory: python
manylinux: auto
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- run: pip install kolo --find-links=./python/dist/
- run: pip install pytest
- name: Test wheel
run: KOLO_PATH=$(realpath ./python) pytest ./python/tests/test_cli.py
- uses: actions/upload-artifact@v3
with:
path: python/dist/*.whl