Skip to content

Commit a7df9af

Browse files
authored
Update and rename test_docker.py# to test_docker.py
1 parent d211861 commit a7df9af

2 files changed

Lines changed: 17 additions & 28 deletions

File tree

tests/integration/test_docker.py

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
import subprocess
2-
import unittest
1+
integration-test:
2+
name: Integration Suite
3+
eeds: quality-assurance
4+
runs-on: ubuntu-22.04
5+
services:
6+
postgres:
7+
image: postgres:14
8+
env:
9+
POSTGRES_PASSWORD: test
10+
ports:
11+
- 5432:5432
12+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
313

4-
class TestDockerBuild(unittest.TestCase):
5-
def test_build(self):
6-
result = subprocess.run(
7-
["docker", "build", "-t", "mechbot-test", "."],
8-
capture_output=True,
9-
text=True
10-
)
11-
self.assertEqual(result.returncode, 0)
14+
steps:
15+
- uses: actions/checkout@v4
16+
- run: |
17+
docker-compose -f docker-compose.test.yml up -d
18+
pytest tests/integration/

tests/integration/test_docker.py#

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)