2019-12-16 11:19:37 +01:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
schedule:
|
2019-12-21 10:06:51 +01:00
|
|
|
- cron: '7 4 * * 4' # weekly on thursday morning
|
2019-12-16 11:19:37 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up Python 3.8
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pipenv
|
|
|
|
pipenv install --dev --deploy
|
|
|
|
- name: Formatting
|
|
|
|
run: |
|
|
|
|
# check that the source files are formatted correctly
|
|
|
|
pipenv run yapf -q *.py
|
|
|
|
- name: Linting
|
|
|
|
run: |
|
2019-12-19 17:36:35 +01:00
|
|
|
pipenv run mypy *.py
|
2019-12-16 11:19:37 +01:00
|
|
|
pipenv run pylint *.py
|