Move linting to github workflow

This commit is contained in:
mvdbeek
2020-11-02 18:08:14 +01:00
parent 2c582f82c2
commit 00657532e2
2 changed files with 25 additions and 10 deletions
+25
View File
@@ -0,0 +1,25 @@
name: Python linting
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.5, 3.8]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dir
uses: actions/cache@v1
id: pip-cache
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- name: Install tox
run: pip install tox
- name: run tests
run: tox -e lint