mglib/.github/workflows/python-app.yml

36 lines
914 B
YAML
Raw Normal View History

2020-11-24 21:34:38 +01:00
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: mglib
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
2020-11-29 08:58:37 +01:00
- name: Set up Python 3.7
2020-11-24 21:34:38 +01:00
uses: actions/setup-python@v2
with:
2020-11-29 08:50:46 +01:00
python-version: 3.7
2020-11-24 21:34:38 +01:00
- name: Install dependencies
run: |
python -m pip install --upgrade pip
2020-11-29 08:50:46 +01:00
pip install flake8
2020-11-29 09:37:12 +01:00
python setup.py develop
2020-11-28 20:06:05 +01:00
if [ -f requirements/base.txt ]; then pip install -r requirements/base.txt; fi
2020-11-24 21:34:38 +01:00
sudo apt install poppler-utils pdftk
2020-11-29 08:50:46 +01:00
- name: Lint with flake8
2020-11-24 21:34:38 +01:00
run: |
2020-11-29 08:50:46 +01:00
flake8 mglib
- name: Run tests
2020-11-24 21:34:38 +01:00
run: |
2020-11-29 08:50:46 +01:00
python test/run.py