We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f0bd0b commit 784aa59Copy full SHA for 784aa59
.github/workflows/run-pytests.yml
@@ -0,0 +1,32 @@
1
+name: pytests in Docker-compose Actions Workflow
2
+
3
+on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
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