Inkycal/.github/workflows/tests.yml
2023-01-20 00:33:59 +01:00

50 lines
1.2 KiB
YAML

name: Python application
on: [push]
jobs:
build:
name: build ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
test:
name: Inkycal testing
needs: build
runs-on: ubuntu-latest
steps:
- name: Clone repo
run: |
git clone --single-branch https://github.com/aceisace/Inkycal
- name: Creating virtual evvironment
run: |
cd Inkycal
python3 -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
- name: Install dependencies
run: |
echo "$PWD"
pip install wheel
pip install -e ./
- name: 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
wget https://raw.githubusercontent.com/aceisace/Inkycal/assets/tests/settings.json
for f in *.py; do python3 "$f"; done