Skip to content

Commit

Permalink
add python ci (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
crwen authored Nov 1, 2024
1 parent a729040 commit b601fa3
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci_binding_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Python Binding CI

on:
push:
pull_request:
workflow_dispatch:


jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: check

- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build with maturin and run
shell: bash
working-directory: "bindings/python"
run: |
python -m venv venv
source venv/bin/activate
pip install maturin
maturin develop -E test
pytest --ignore=tests/bench -v .

0 comments on commit b601fa3

Please sign in to comment.