fix env issues

This commit is contained in:
Ace 2023-01-19 23:58:56 +01:00 committed by GitHub
parent 4662a1cd65
commit 0050f86999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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