Skip to content

Commit

Permalink
ci: add mailpit tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukancagatay committed Sep 25, 2024
1 parent b81fc70 commit c1a3158
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,25 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip' # caching pip dependencies

- name: Start test containers
run: docker compose -f test/docker-compose.yml up -d --build

- name: Install test environment
run: pip install -r test/requirements.txt

- name: Run tests
run: pytest -vv test/test_mailpit.py

- name: Stop test containers
if: always()
run: docker compose -f test/docker-compose.yml down --volumes

- name: Login to DockerHub
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit c1a3158

Please sign in to comment.