Skip to content

Commit 7a0c76a

Browse files
committed
gh action for integration test
1 parent 5dfecbe commit 7a0c76a

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/test_docker.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Integration Tests
2+
3+
on:
4+
pull_request:
5+
branches: [ develop ]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
services:
12+
docker:
13+
image: docker:24.0.6
14+
options: --privileged
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.11'
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install pytest requests
29+
30+
- name: Build Docker Compose Containers
31+
run: |
32+
docker compose -f docker-compose-develop.yml build
33+
34+
- name: Spin Up Docker Compose and Run Tests
35+
run: pytest tests/metadata_integration.py -v
36+
37+
- name: Ensure that Docker Compose is Shutdown
38+
if: always()
39+
run: docker compose down

0 commit comments

Comments
 (0)