Use single workflow file

This commit is contained in:
Ace 2020-06-17 14:54:48 +02:00 committed by GitHub
parent 80378ab776
commit 1d914c6d5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,6 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python name: Python application
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python tests on: [push]
on:
push:
# branches: [ master ]
pull_request:
branches: [ master ]
jobs: jobs:
build: build:
@ -15,23 +8,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v1
- name: Set up Python 3.8 - name: Set up Python 3.7
uses: actions/setup-python@v2 uses: actions/setup-python@v1
with: with:
python-version: 3.8 python-version: 3.7
- name: Install dependencies
- name: Clone repo
run: |
git clone -b dev_ver2_0 https://github.com/aceisace/Inky-Calendar Inkycal
- name: Install dependencies and run
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install flake8 pytest cd Inkycal
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi pip3 install -e ./
# - name: Lint with flake8 cd inkycal/modules && ls -al
# run: | cd ..
# # stop the build if there are Python syntax errors or undefined names cd tests
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics for f in *.py; do python3 "$f"; done
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
working-directory: ./inkycal
run: |
pytest