Skip to content

run mypy in CI

run mypy in CI #7

Workflow file for this run

# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.x']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: install
run: pip3 install --progress-bar off coveralls mypy ruff
- name: unittest
run: coverage run --source pigwig --omit 'pigwig/tests/*' -m unittest -v
- name: coveralls
uses: coverallsapp/github-action@v2
if: ${{ matrix.python-version == '3.x' }}
with:
parallel-finished: true
- name: ruff
run: ruff check --output-format=github pigwig blogwig
- uses: tsuyoshicho/action-mypy@v4
with:
reporter: github-check