diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a2b2d2..42ed6e5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,13 +1,6 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions +name: Python application -name: Python tests - -on: - push: - # branches: [ master ] - pull_request: - branches: [ master ] +on: [push] jobs: build: @@ -15,23 +8,21 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 with: - python-version: 3.8 - - name: Install dependencies + python-version: 3.7 + + - name: Clone repo + run: | + git clone -b dev_ver2_0 https://github.com/aceisace/Inky-Calendar Inkycal + - name: Install dependencies and run run: | python -m pip install --upgrade pip - pip install flake8 pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi -# - name: Lint with flake8 -# run: | -# # stop the build if there are Python syntax errors or undefined names -# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics -# # 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 + cd Inkycal + pip3 install -e ./ + cd inkycal/modules && ls -al + cd .. + cd tests + for f in *.py; do python3 "$f"; done