From ed5c976784b1f418bd5286a89efde533cd792451 Mon Sep 17 00:00:00 2001 From: Robert Sirre Date: Fri, 15 May 2020 23:03:53 +0200 Subject: [PATCH] (re) added pythonapp workflow totally untested, but this can be the start of automated build-and-test --- .github/workflows/pythonapp.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pythonapp.yml diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml new file mode 100644 index 0000000..a49ab69 --- /dev/null +++ b/.github/workflows/pythonapp.yml @@ -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