support for env var
This commit is contained in:
parent
a431ffb683
commit
fb8e448f5c
11
.github/workflows/tests.yml
vendored
11
.github/workflows/tests.yml
vendored
@ -25,14 +25,19 @@ jobs:
|
|||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
|
||||||
- name: Install dependencies and run
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install wheel
|
pip install wheel
|
||||||
pip install -e ./
|
pip install -e ./
|
||||||
cd inkycal/modules && ls -al
|
cd inkycal/modules && ls -al
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
env:
|
||||||
|
OPENWEATHERMAP_API_KEY: secrets.OPENWEATHERMAP_API_KEY
|
||||||
|
|
||||||
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd tests
|
cd tests
|
||||||
wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json
|
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/"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
|
for f in *.py; do python3 "$f"; done
|
||||||
|
Loading…
Reference in New Issue
Block a user