-
Notifications
You must be signed in to change notification settings - Fork 40
44 lines (37 loc) · 971 Bytes
/
backend-py.yml
File metadata and controls
44 lines (37 loc) · 971 Bytes
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
name: backend-py
on:
pull_request:
paths:
- ".github/actions/setup-test"
- ".github/workflows/backend-py.yml"
- "backend-py/**"
push:
branches:
- main
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- uses: "./.github/actions/setup-test"
- name: Install Python Dependecies
working-directory: backend-py
run: pip install -r requirements.txt
- name: Run Tests
working-directory: backend-py
run: pytest
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test image starts up
run: |
cp .env.sample .env
docker compose up -d frontend backend-py
curl --request GET http://0.0.0.0:5100 || docker compose logs