From 703f29a1f997c169bbc661166c813e0a0f56c0a7 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 8 Jan 2025 13:28:47 +0100 Subject: [PATCH] GitHub Action to lint Python code * https://docs.github.com/en/actions * https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-python * https://docs.astral.sh/ruff The `googletest' vendored into this codebase was never ported to Python 3, so it has at least 64 files containing Python Syntax Errors. --- .github/workflows/lint_python.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/lint_python.yml diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml new file mode 100644 index 0000000..ec1d49c --- /dev/null +++ b/.github/workflows/lint_python.yml @@ -0,0 +1,11 @@ +# https://docs.github.com/en/actions +# https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-python +# https://docs.astral.sh/ruff +name: lint_python +on: [pull_request, push] +jobs: + lint_python: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/ruff-action@v3