Skip to content

Improved docs, tests and CI #1

Improved docs, tests and CI

Improved docs, tests and CI #1

Workflow file for this run

name: RustSAT
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-test:
name: Build and test
strategy:

Check failure on line 15 in .github/workflows/rustsat.yml

View workflow run for this annotation

GitHub Actions / RustSAT

Invalid workflow file

The workflow is not valid. .github/workflows/rustsat.yml (Line: 15, Col: 14): Unexpected value '' .github/workflows/rustsat.yml (Line: 16, Col: 5): Unexpected value 'matrix'
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
shared-key: "build-test"
- name: Cargo build
run: cargo build -p rustsat --verbose --features=all
- name: Cargo test
run: cargo test -p rustsat --verbose --features=all
pystubs:
name: Test python stubs
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Install maturin from PyPI
uses: install-pinned/maturin@dfebcaa782a69944b584ec164e97fbbd09885352
- name: Install mypy from PyPI
uses: install-pinned/mypy@c2223951641cbb406fa8526d08f0690899f130e4
- name: Install python project
run: maturin build -m rustsat/Cargo.toml && pip install --no-index --find-links target/wheels/ rustsat
- name: Test stubs
run: stubtest --mypy-config-file rustsat/pyproject.toml --allowlist rustsat/stubtest-allowlist.txt rustsat