-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (38 loc) · 1.03 KB
/
ci-backend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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