From 0050f86999385d415211de5e737d5abd8c680cf0 Mon Sep 17 00:00:00 2001 From: Ace Date: Thu, 19 Jan 2023 23:58:56 +0100 Subject: [PATCH] fix env issues --- .github/workflows/tests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e848a50..18ffd3c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: - name: Clone repo run: | - git clone --branch feature/venv --single-branch https://github.com/aceisace/Inkycal + git clone --single-branch https://github.com/aceisace/Inkycal - name: Creating virtual evvironment run: | @@ -31,9 +31,13 @@ jobs: pip install wheel pip install -e ./ - - name: Setup test environment and run tests + - name: Setup test environment and run tests + env: + OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }} + SAMPLE_ICAL_URL: ${{ secrets.SAMPLE_ICAL_URL }} + TEST_ICAL_URL: ${{ secrets.TEST_ICAL_URL }} + TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }} run: | cd inkycal/tests - echo "${{ secrets.ENV_FILE }}" > .env wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json for f in *.py; do python3 "$f"; done