Skip to content

Commit 7f7125d

Browse files
committed
Add test workflow
1 parent cb9aca2 commit 7f7125d

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run Pytest
2+
permissions:
3+
contents: read
4+
pull-requests: write
5+
6+
on:
7+
push:
8+
branches:
9+
- features/**
10+
pull_request:
11+
branches:
12+
- main
13+
- master
14+
15+
jobs:
16+
docker:
17+
timeout-minutes: 10
18+
runs-on: ubuntu-latest
19+
env:
20+
INITIALIZE_DB: false
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v1
25+
26+
- name: Start containers
27+
run: docker compose -f "compose.yml" up proxy -d --build
28+
29+
- name: Run tests
30+
run: docker compose exec -T proxy pytest -v --show-capture=no
31+
32+
- name: Stop containers
33+
if: always()
34+
run: docker compose -f "compose.yml" down

0 commit comments

Comments
 (0)