From 27a7242c239391d83adba847d6bdeda68ecc0ff6 Mon Sep 17 00:00:00 2001 From: Henil Panchal Date: Mon, 25 Mar 2024 13:09:28 +0530 Subject: [PATCH] fix: env var --- .github/workflows/tests.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 35363f6c..033e47a8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: reset@localhost.com + RESET_PASSWORD: reset + SUDO_PASSWORD: fortran + IS_CI: true + jobs: build: runs-on: ubuntu-latest @@ -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 \ No newline at end of file