Add Github Actions workflow
This commit is contained in:
parent
3b80109cff
commit
94db975cf0
|
@ -0,0 +1,31 @@
|
||||||
|
# Github Actions workflow file
|
||||||
|
name: main
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
|
||||||
|
# Run when commits are pushed.
|
||||||
|
push:
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
# Run checks on Python code.
|
||||||
|
check-python:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python 3.11
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install --upgrade mypy pylint
|
||||||
|
- name: Run mypy
|
||||||
|
run: mypy --disallow-incomplete-defs python tests
|
||||||
|
- name: Run pylint
|
||||||
|
run: pylint --ignore=test_mwmatching.py python tests
|
||||||
|
|
Loading…
Reference in New Issue