From 136960e8f4189c0e59afe911eb1c615b0241810f Mon Sep 17 00:00:00 2001 From: Ace Date: Thu, 14 Apr 2022 17:17:18 +0200 Subject: [PATCH] Update tests.yml --- .github/workflows/tests.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1a5954c..5c1c6e3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,10 +25,6 @@ jobs: source venv/bin/activate python -m pip install --upgrade pip - - name: Downloading settings.json file - run: | - wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json - - name: Install dependencies and run run: | pip install wheel @@ -36,5 +32,7 @@ jobs: cd inkycal/modules && ls -al cd .. cd tests + wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json + sed -i 's/"api_key":.*/"api_key": "${{secrets.OPENWEATHERMAP_API_KEY}}"/' settings.json sed -i 's/secret_key =.*/secret_key = "${{secrets.OPENWEATHERMAP_API_KEY}}"/' inkycal_weather_test.py for f in *.py; do python3 "$f"; done