Skip to content

Commit

Permalink
Simplify GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste committed Jul 16, 2022
1 parent cbfa014 commit cd3c391
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
name: Python
name: CI

on:
push:
branches: [ master ]
branches:
- master
pull_request:
branches: [ master ]

jobs:
check-messages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: kaste/upgrade-messages-test-action@v1

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --show-source --statistics
- uses: actions/checkout@v3
- uses: TrueBrain/actions-flake8@v2

0 comments on commit cd3c391

Please sign in to comment.