Skip to content

Commit

Permalink
Create Github Action to run flake8 and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lordmauve committed Nov 14, 2019
1 parent 459dd1c commit 0a7cca7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Python application

on: [push]

jobs:
build:

runs-on: ubuntu-latest
env:
PYFLAKES_BUILTINS: Actor,Rect,ZRect,animate,clock,exit,images,keyboard,keymods,keys,mouse,music,screen,sounds,storage,tone
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 --count pgzero pgzrun.py test
- name: Run tests
run: |
python setup.py test

0 comments on commit 0a7cca7

Please sign in to comment.