Skip to content

Restructure project to use maturin to build pyo3 bindings #4

Restructure project to use maturin to build pyo3 bindings

Restructure project to use maturin to build pyo3 bindings #4

Workflow file for this run

name: ci
on:
push:
branches:
- main
tags:
- '**'
pull_request: {}
env:
COLUMNS: 150
jobs:
test-python:
name: test ${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- 'pypy3.9'
- 'pypy3.10'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install rust stable
uses: dtolnay/rust-toolchain@stable
- name: cache rust
uses: Swatinem/rust-cache@v2
with:
key: test-v3
- name: set up python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install docker requests
- run: pip install -e .
env:
RUST_BACKTRACE: 1
- run: pip freeze
- run: sh scripts/run_tests.sh
test-os:
name: test on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
- name: install rust stable
uses: dtolnay/rust-toolchain@stable
- name: cache rust
uses: Swatinem/rust-cache@v2
- name: set up python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Update PATH
if: ${{ matrix.os != 'windows' }}
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Update Path for Windows
if: ${{ matrix.os == 'windows' }}
run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH
- run: pip install docker requests
- run: pip install -e .
env:
RUST_BACKTRACE: 1
- run: pip freeze
- run: sh scripts/run_tests.sh
- run: cargo test