Skip to content

Commit

Permalink
fix: env var
Browse files Browse the repository at this point in the history
  • Loading branch information
henilp105 committed Mar 25, 2024
1 parent 6f0142e commit 27a7242
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ on:
branches: ["main"]
workflow_dispatch:

env:
MONGO_DB_NAME: testregistry
MONGO_URI: mongodb://localhost:27017/
MONGO_USER_NAME: Admin
MONGO_PASSWORD: Admin
SALT: MYSALT
HOST: localhost
RESET_EMAIL: [email protected]
RESET_PASSWORD: reset
SUDO_PASSWORD: fortran
IS_CI: true

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -25,10 +37,6 @@ jobs:

- name: Install python libraries
run: pip3 install --user -r backend/requirements.txt

- name: load env file
run: |
echo "${{ secrets.TEST_ENV_FILE }}" > backend/.env

- name: Build the Docker image and run tests
run: cd backend && python -m unittest discover -s tests

0 comments on commit 27a7242

Please sign in to comment.