updated readme to reference correct methods and include some badges (#4) #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- name: Install Rye | |
uses: eifinger/setup-rye@v4 | |
- name: Pin Python Version | |
run: rye pin ${{ matrix.python-version }} | |
- name: Install Dependencies | |
run: rye sync | |
- name: Compile Bindings | |
run: rye run maturin develop | |
- name: Run Tests | |
run: rye run pytest -v tests/ | |
lint: | |
name: Linting | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rye | |
uses: eifinger/setup-rye@v4 | |
- name: Pin Python Version | |
run: rye pin ${{ matrix.python-version }} | |
- name: Install Dependencies | |
run: rye sync | |
- name: Run Ruff Linter | |
run: rye run ruff check -v | |
format: | |
name: Formatting | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rye | |
uses: eifinger/setup-rye@v4 | |
- name: Pin Python Version | |
run: rye pin ${{ matrix.python-version }} | |
- name: Install Dependencies | |
run: rye sync | |
- name: Run Ruff Linter | |
run: rye run ruff format --check -v |