(re) added pythonapp workflow

totally untested, but this can be the start of automated build-and-test
This commit is contained in:
Robert Sirre 2020-05-15 23:03:53 +02:00 committed by GitHub
parent 7326e0e2ae
commit ed5c976784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

31
.github/workflows/pythonapp.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Python application
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Clone repo
run: |
git clone https://github.com/aceisace/Inky-Calendar
- name: Install dependencies and run
run: |
python -m pip install --upgrade pip
cd Inky-Calendar && pip3 install -r requirements.txt
ln -s settings/settings.py modules/
ln -s settings/configuration.py modules/
ls -al
cd modules && ls -al
python3 inkycal.py
- name: Test with pytest
run: |
pytest