test with .env
This commit is contained in:
parent
24ae6df27e
commit
e6618664f2
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
@ -25,17 +25,20 @@ 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 tests
|
- name: Install dependencies
|
||||||
env:
|
|
||||||
OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }}
|
|
||||||
TODOIST_API_KEY: ${{ secrets.TODOIST_API_KEY }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "$PWD"
|
echo "$PWD"
|
||||||
pip install wheel
|
pip install wheel
|
||||||
pip install -e ./
|
pip install -e ./
|
||||||
|
|
||||||
|
- name: Setup test environment
|
||||||
|
run: |
|
||||||
cd inkycal/modules && ls -al
|
cd inkycal/modules && ls -al
|
||||||
cd ..
|
cd ..
|
||||||
cd tests
|
cd tests
|
||||||
|
echo "${{ secrets.ENV_FILE }}" > .env
|
||||||
wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json
|
wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json
|
||||||
# doesn't work :( sed -i 's/"api_key":.*/"api_key": "${{secrets.OPENWEATHERMAP_API_KEY}}",/' settings.json
|
|
||||||
|
- name: Run unittests
|
||||||
|
run: |
|
||||||
for f in *.py; do python3 "$f"; done
|
for f in *.py; do python3 "$f"; done
|
||||||
|
Loading…
Reference in New Issue
Block a user