From 78db81be2e488a208e0ace3a706ad0bda4ff237a Mon Sep 17 00:00:00 2001 From: Ace Date: Thu, 14 Apr 2022 16:22:27 +0200 Subject: [PATCH 1/5] Update tests.yml --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5bffb06..2151c6a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,4 +36,5 @@ jobs: cd inkycal/modules && ls -al cd .. cd tests + sed -i '' 's/secret_key =.*/secret_key = "{{secrets.OPENWEATHERMAP_API_KEY}}"/' inkycal_weather_test.py for f in *.py; do python3 "$f"; done From 129f789a26910419c2a98b82bd5f56f14e8de3fd Mon Sep 17 00:00:00 2001 From: Ace Date: Thu, 14 Apr 2022 16:24:53 +0200 Subject: [PATCH 2/5] Update tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2151c6a..da66023 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,5 +36,5 @@ jobs: cd inkycal/modules && ls -al cd .. cd tests - sed -i '' 's/secret_key =.*/secret_key = "{{secrets.OPENWEATHERMAP_API_KEY}}"/' inkycal_weather_test.py + sed -i '' 's/secret_key =.*/secret_key = "${{secrets.OPENWEATHERMAP_API_KEY}}"/' inkycal_weather_test.py for f in *.py; do python3 "$f"; done From 801e959af708c780d6e5b0495eeb6fa113aced52 Mon Sep 17 00:00:00 2001 From: Ace Date: Thu, 14 Apr 2022 16:32:24 +0200 Subject: [PATCH 3/5] Update tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index da66023..dc96a34 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,5 +36,5 @@ jobs: cd inkycal/modules && ls -al cd .. cd tests - sed -i '' 's/secret_key =.*/secret_key = "${{secrets.OPENWEATHERMAP_API_KEY}}"/' inkycal_weather_test.py + sed -i 's/ecret_key =.*/secret_key = "${{secrets.OPENWEATHERMAP_API_KEY}}"/' inkycal_weather_test.py for f in *.py; do python3 "$f"; done From e4517c23e4c11499bfaa0aee6b2290d8ffd42e5b Mon Sep 17 00:00:00 2001 From: Ace Date: Thu, 14 Apr 2022 16:35:56 +0200 Subject: [PATCH 4/5] Update tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dc96a34..1a5954c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,5 +36,5 @@ jobs: cd inkycal/modules && ls -al cd .. cd tests - sed -i 's/ecret_key =.*/secret_key = "${{secrets.OPENWEATHERMAP_API_KEY}}"/' inkycal_weather_test.py + sed -i 's/secret_key =.*/secret_key = "${{secrets.OPENWEATHERMAP_API_KEY}}"/' inkycal_weather_test.py for f in *.py; do python3 "$f"; done From 136960e8f4189c0e59afe911eb1c615b0241810f Mon Sep 17 00:00:00 2001 From: Ace Date: Thu, 14 Apr 2022 17:17:18 +0200 Subject: [PATCH 5/5] 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