From 6bda355e79ebeb2e0ea83e6b63675ae8e67375a5 Mon Sep 17 00:00:00 2001 From: Manuel Sommerhalder Date: Tue, 15 Oct 2024 11:20:50 +0200 Subject: [PATCH] Draft of GitHub Action for linting --- .github/workflows/linter.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..d0d6901 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,19 @@ +name: flake8 linter + +on: [push, pull_request] + +jobs: + flake8: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.9.7' + + - name: Install dependencies and run flake8 + run: | + python -m pip install --upgrade pip + python -m pip install flake8 + flake8