-
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 764df1a
Showing
11 changed files
with
94 additions
and
46 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 |
---|---|---|
|
@@ -40,4 +40,7 @@ nosetests.xml | |
.pydevproject | ||
|
||
# JetBrains PyCharm IDE | ||
/.idea/ | ||
/.idea/ | ||
|
||
.venv | ||
.tags |
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 |
---|---|---|
|
@@ -25,5 +25,5 @@ jobs: | |
env: | ||
TOXENV: build | ||
run: | | ||
pip install -U tox | ||
pip install -r requirements-tests.txt | ||
tox |
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 |
---|---|---|
|
@@ -25,5 +25,5 @@ jobs: | |
env: | ||
TOXENV: ${{ matrix.env }} | ||
run: | | ||
pip install -U tox | ||
pip install -r requirements-tests.txt | ||
tox |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM python:3.11-slim | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Install tox and dependencies (replace 'your-requirements.txt' with your actual file) | ||
COPY requirements.txt . | ||
COPY requirements-tests.txt . | ||
RUN pip install -r requirements.txt -r requirements-tests.txt | ||
|
||
# Copy your project code | ||
COPY . . | ||
|
||
# Run Tox tests | ||
CMD ["tox"] | ||
|
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
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