From b7991b09a79a8216246109e95618d5fb038b88af Mon Sep 17 00:00:00 2001 From: Jun-Hyeok Date: Wed, 28 Jun 2023 14:29:14 +0900 Subject: [PATCH 1/5] Create pylint.yml --- .github/workflows/pylint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..383e65c --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +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: | + pylint $(git ls-files '*.py') From afe0fcaa65f5d1495b08ef202c746a55710f4fa8 Mon Sep 17 00:00:00 2001 From: Jun-Hyeok Date: Wed, 28 Jun 2023 14:40:34 +0900 Subject: [PATCH 2/5] Update pylint.yml --- .github/workflows/pylint.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 383e65c..0369ab3 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,6 +1,12 @@ name: Pylint -on: [push] +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' jobs: build: From b51c1963e98cbe21e344f9f1005147989b2b5368 Mon Sep 17 00:00:00 2001 From: Jun-Hyeok Date: Wed, 28 Jun 2023 14:50:47 +0900 Subject: [PATCH 3/5] Create black.yml --- .github/workflows/black.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/black.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 0000000..b9302f9 --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,29 @@ +name: Black + +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + +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 black + - name: Formatting code with Black + run: | + black . From 86c7ca12b2872b8550f25c11953e32d4dc40afce Mon Sep 17 00:00:00 2001 From: Jun-Hyeok Date: Wed, 28 Jun 2023 15:00:36 +0900 Subject: [PATCH 4/5] Add step to install dependencies from requirements.txt --- .github/workflows/pylint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 0369ab3..b818399 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -23,6 +23,7 @@ jobs: - 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: | From ad2377a4dbf44b43f9bdbc5756f4d0b0c432cc4a Mon Sep 17 00:00:00 2001 From: Jun-Hyeok Date: Wed, 5 Jul 2023 17:35:29 +0900 Subject: [PATCH 5/5] Update black.yml --- .github/workflows/black.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index b9302f9..a7bfee3 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -9,7 +9,7 @@ on: - '*' jobs: - build: + format: runs-on: ubuntu-latest strategy: matrix: