-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use docker compose setup for replicatable testing (#24)
* Use docker compose setup for replicatable testing * Update readme, add additional assert
- Loading branch information
1 parent
057f261
commit 2e34488
Showing
9 changed files
with
67 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,25 +10,19 @@ jobs: | |
test: | ||
name: Pytest | ||
runs-on: ubuntu-latest | ||
# This does not work because you can't pass | ||
# commands into the container to start the | ||
# server! Massive limitation in Actions. | ||
# services: | ||
# ntfy: | ||
# image: binwiederhier/ntfy | ||
# ports: | ||
# - 80:80 | ||
# env: | ||
# NTFY_ATTACHMENT_CACHE_DIR: /cache | ||
# NTFY_BASE_URL: http://localhost | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: citizensadvice/python-poetry-setup-action@v1 | ||
|
||
- name: Install dependencies | ||
run: poetry install --with dev | ||
|
||
|
||
- name: Setup Docker Compose | ||
uses: KengoTODA/actions-setup-docker-compose@main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Start test containers | ||
uses: hoverkraft-tech/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ __pytest__ | |
.coverage | ||
__pycache__ | ||
dist/ | ||
site/ | ||
site/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"python.testing.pytestArgs": [ | ||
"tests" | ||
], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters