From 6511376c88a4c4909d18770b2fc3ba693655319e Mon Sep 17 00:00:00 2001 From: Rithvik Bhogavilli Date: Sun, 12 Nov 2023 21:53:36 -0500 Subject: [PATCH 1/3] Create pylint CI job --- .github/workflows/pylint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..f6981eb --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,26 @@ +name: pylint-check + +on: + pull_request: + types: + - opened + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v3 + - 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 pylint + - name: Analysing the code with pylint + run: | + Simulation/6DOF_RK4/**/*.py From 8d4a1da07d682623df49123124cfdad2553f63b2 Mon Sep 17 00:00:00 2001 From: Rithvik Date: Sun, 12 Nov 2023 21:55:50 -0500 Subject: [PATCH 2/3] Actually run pylint --- .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 f6981eb..cc8b0f0 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -23,4 +23,4 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - Simulation/6DOF_RK4/**/*.py + pylint Simulation/6DOF_RK4/**/*.py From f38e5857b76317dc49870bba717d29eef571034b Mon Sep 17 00:00:00 2001 From: Rithvik Date: Sun, 12 Nov 2023 21:58:44 -0500 Subject: [PATCH 3/3] Change trigger --- .github/workflows/pylint.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index cc8b0f0..60e5f48 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,9 +1,6 @@ name: pylint-check -on: - pull_request: - types: - - opened +on: pull_request jobs: build: