Skip to content

Commit 784aa59

Browse files
authored
initial version of testing workflow
1 parent 5f0bd0b commit 784aa59

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/run-pytests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: pytests in Docker-compose Actions Workflow
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
12+
test:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Build the Docker images
20+
run: docker-compose build
21+
22+
- name: start the Docker containers
23+
run: docker-compose --profile testing up -d
24+
25+
- name: Install pytest
26+
run: pip install pytest
27+
28+
- name: Test with pytest
29+
- run: coverage run -m pytest -v -s
30+
31+
- name: Generate Coverage Report
32+
- run: coverage report -m

0 commit comments

Comments
 (0)