From 85ae8e52a583aff9c737db0c74981306f0f1c606 Mon Sep 17 00:00:00 2001 From: Jussi-Pekka Erkkila Date: Mon, 2 Dec 2024 00:48:18 +0200 Subject: [PATCH 1/2] github workflow for flake8 linting --- .github/workflows/flake8.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/flake8.yml diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml new file mode 100644 index 0000000..faa77ee --- /dev/null +++ b/.github/workflows/flake8.yml @@ -0,0 +1,23 @@ +name: Flake8 + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 + - name: flake8 linting + run: | + flake8 $(git ls-files '*.py') From ebe8b6855c72b918c98f4781672424c6408b8776 Mon Sep 17 00:00:00 2001 From: Jussi-Pekka Erkkila Date: Mon, 2 Dec 2024 00:49:56 +0200 Subject: [PATCH 2/2] remove overlapping pylint tests --- .github/workflows/pylint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index c73e032..e7a5fb5 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.8"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }}