1
0
Fork 0

Add Github Actions workflow

This commit is contained in:
Joris van Rantwijk 2023-04-14 10:29:22 +02:00
parent 3b80109cff
commit 94db975cf0
1 changed files with 31 additions and 0 deletions

31
.github/workflows/main.yml vendored Normal file
View File

@ -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