From cd3c3916e3b3b8f129ceded3a5dea4382983f202 Mon Sep 17 00:00:00 2001 From: herr kaste Date: Sat, 16 Jul 2022 22:59:13 +0200 Subject: [PATCH 1/2] Simplify GitHub action --- .github/workflows/python-app.yml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 489db36..50c0290 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -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 From 21ff76c5a554c17ef3432436b986fbcb4e52bbd6 Mon Sep 17 00:00:00 2001 From: herr kaste Date: Sat, 16 Jul 2022 23:01:25 +0200 Subject: [PATCH 2/2] Rename workflow file --- .github/workflows/{python-app.yml => tests.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{python-app.yml => tests.yml} (100%) diff --git a/.github/workflows/python-app.yml b/.github/workflows/tests.yml similarity index 100% rename from .github/workflows/python-app.yml rename to .github/workflows/tests.yml