-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (29 loc) · 853 Bytes
/
on-push.yaml
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
name: CI
on: push
jobs:
test-api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: "Build API test image"
run: docker build --tag api-development ./api
- name: "API UnitTests"
run: docker run --rm -e TABEL_KEY="${{ secrets.TABEL_KEY }}" api-development pytest src/tests
test-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: "Build web"
run: docker build --tag web-development ./web
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files