From 3232aa581978856f8ce26e84c07acb3347923bb9 Mon Sep 17 00:00:00 2001 From: "Pavel N. Krivitsky" Date: Fri, 10 May 2024 14:31:58 +1000 Subject: [PATCH] Set up pylint GitHub action. --- .github/workflows/pylint.yml | 24 ++++++++++++++++++++++++ requirements.txt | 5 +++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/pylint.yml create mode 100644 requirements.txt diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..327c1ac --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,24 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.x'] + 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 -r requirements.txt + pip install pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py') diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..64aedc0 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +numpy +torch +torch_geometric +scikit-learn +pandas