-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.28 KB
/
build.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
# This is a basic workflow to help you get started with Actions
name: build
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: List files in the repository
run: ls ${{ github.workspace }}
- name: Black Code Formatter
uses: lgeiger/black-action@master
with:
args: './backend --check --line-length 120'
- name: Build the stack
run: docker compose build
- name: Run backend UT
run: docker compose run backend pytest -p no:cacheprovider
- name: Run frontend UT
run: docker compose run frontend npm run test:all