Merge remote-tracking branch 'origin/feature/venv' into feature/venv

This commit is contained in:
aceisace 2022-09-08 23:23:13 +02:00
commit 89ae709a03

View File

@ -25,8 +25,11 @@ 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 and run tests
env:
OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }}
run: | run: |
echo "$PWD"
pip install wheel pip install wheel
pip install -e ./ pip install -e ./
cd inkycal/modules && ls -al cd inkycal/modules && ls -al
@ -34,5 +37,4 @@ jobs:
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