Skip to content

add ci testing

add ci testing #4

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint
run: cargo clippy --all -- -D warnings
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Format
run: cargo fmt --all --check
test:
name: Test (Python ${{ matrix.python_version }}, ${{ matrix.os }} )
runs-on: ${{ matrix.os }}
strategy:
matrix:
python_version: ['3.12']
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Build
run: cargo build
- name: Test
run: cargo test --verbose