Skip to content

Add stubtest run

Add stubtest run #52

Workflow file for this run

name: checks
on:
push:
branches:
- master
pull_request:
types: [opened, reopened, synchronize]
jobs:
clippy:
runs-on: ubuntu-latest
name: "Check & Clippy"
steps:
- uses: actions/checkout@v4
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: "1.78.0" # MSRV
override: true
components: clippy
- uses: actions-rs/[email protected]
with:
command: check
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --no-deps -- -D warnings
name: "Clippy Results"
fmt:
runs-on: ubuntu-latest
name: "Rust Formatting"
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
components: rustfmt
toolchain: stable
override: true
- uses: actions-rs/[email protected]
with:
command: fmt
args: --all -- --check
black:
runs-on: ubuntu-latest
name: "Python Formatting"
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
stubtest:
runs-on: ubuntu-latest
name: "Stub Test"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build taskchampion-py
uses: PyO3/maturin-action@v1
args: --release --out dist --find-interpreter

Check failure on line 81 in .github/workflows/checks.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/checks.yml

Invalid workflow file

You have an error in your yaml syntax on line 81
sccache: 'true'
manylinux: musllinux_1_2
- run: pip install dist/*
- run: pip install mypy
- run: python -m mypy.stubtest taskchampion --ignore-missing-stub