Fix linting errors #331
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backend CI | |
on: | |
push: | |
branches: | |
- "**" | |
paths: | |
- 'backend/**' | |
- .github/workflows/ci-backend.yml | |
jobs: | |
qa: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./backend | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Configure cache | |
id: python-cache | |
uses: actions/cache@v2 | |
if: startsWith(runner.os, 'Linux') && ${{ !env.ACT }} | |
with: | |
path: | | |
${{ env.pythonLocation}} | |
key: v2-${{ runner.os }}-${{ hashFiles('**/requirements*.txt') }} | |
- name: Install deps using Pip | |
run: pip install -r requirements-dev.txt | |
if: steps.python-cache.outputs.cache-hit != 'true' | |
- name: Run linting checks | |
run: | | |
isort scaife_stack_atlas -rc --check-only | |
black scaife_stack_atlas --check | |
flake8 scaife_stack_atlas | |
- name: Run tests | |
run: pytest |