-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (39 loc) · 1.15 KB
/
demo-ci.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
42
43
44
45
name: Demo CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Install javascript dependencies
uses: borales/[email protected]
with:
cmd: --cwd web install # will run `yarn install` command
- name: Lint javascript code
uses: borales/[email protected]
with:
cmd: --cwd web run lint # will run `yarn run lint` command
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'backend/requirements.txt'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
cat backend/requirements.txt | grep -v '#' | xargs -n 1 pip install
continue-on-error: false
- name: Run flake
run: |
flake8 backend --config backend/.flake8
continue-on-error: false