-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix test requirements and simplified tox config
- Loading branch information
R Max Espinoza
committed
Jul 2, 2024
1 parent
48a7a89
commit e8904ae
Showing
6 changed files
with
62 additions
and
40 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.7.3 | ||
0.7.3 |
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,20 @@ | ||
version: '3.8' | ||
|
||
services: | ||
python: | ||
build: . | ||
command: tox -e security,flake8,pytest | ||
environment: | ||
REDIS_HOST: redis # Use service name for hostname within docker network | ||
REDIS_PORT: 6379 | ||
TOX_TESTENV_PASSENV: "REDIS_HOST REDIS_PORT" | ||
volumes: | ||
- ./:/app # Mount your project directory into the container | ||
depends_on: | ||
- redis | ||
|
||
redis: | ||
image: redis:6.2-alpine | ||
ports: | ||
- "6379:6379" # Map Redis port to host port | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# This packages are required to run all the tests. | ||
flake8 | ||
mock | ||
pytest | ||
pytest>=6.0,<7 | ||
pytest-cov | ||
tox | ||
tox>=3.0,<4 |
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