Skip to content

Commit 1b99088

Browse files
author
Max Azatian
committed
CI fix 13
1 parent def453a commit 1b99088

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,12 @@ jobs:
139139
- name: Run backend tests with coverage
140140
env:
141141
BACKEND_BASE_URL: https://127.0.0.1:443
142+
# Provide an explicit Mongo URI for tests using the CI secrets and modern auth mechanism
143+
MONGODB_URL: mongodb://${{ secrets.MONGO_ROOT_USER }}:${{ secrets.MONGO_ROOT_PASSWORD }}@127.0.0.1:27017/?authSource=admin&authMechanism=SCRAM-SHA-256
142144
run: |
143145
cd backend
144146
echo "Using BACKEND_BASE_URL=$BACKEND_BASE_URL"
147+
# Do not echo the full MONGODB_URL to avoid leaking secrets
145148
python -m pytest tests/integration tests/unit -v --cov=app --cov-branch --cov-report=xml --cov-report=term --cov-report=term-missing
146149
147150
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)