Skip to content

Commit

Permalink
feat(workflow): run python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fliiiix committed Nov 12, 2019
1 parent cb7b868 commit bc6b4df
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/backend-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Python package

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Lint with flake8
working-directory: backend
run: |
pip install flake8
flake8 --show-source app.py
- name: Lint with black
working-directory: backend
run: |
pip install black
black --check app.py
- name: Lint with isort
working-directory: backend
run: |
pip install isort
isort --check-only app.py

0 comments on commit bc6b4df

Please sign in to comment.