From 6af01008fe6329777816fb6905a8c3a83f30014b Mon Sep 17 00:00:00 2001 From: Wojciech Patelka Date: Wed, 11 Jan 2023 20:43:45 +0100 Subject: [PATCH 1/5] [CFP-506] Add pr backend linter --- .github/workflows/pr_linting.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/pr_linting.yml diff --git a/.github/workflows/pr_linting.yml b/.github/workflows/pr_linting.yml new file mode 100644 index 00000000..5139e0a7 --- /dev/null +++ b/.github/workflows/pr_linting.yml @@ -0,0 +1,14 @@ +name: PR linter + +on: [pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - uses: psf/black@master + - uses: isort/isort-action@master + with: + configuration: " --check-only --diff --profile black" From 5b74008014a41dde81ccb4f4d783ac80a6a90a87 Mon Sep 17 00:00:00 2001 From: Wojciech Patelka Date: Thu, 12 Jan 2023 11:53:31 +0100 Subject: [PATCH 2/5] [CFP-506] Reusable workflow for backend linting --- .github/workflows/pr_linting.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/pr_linting.yml b/.github/workflows/pr_linting.yml index 5139e0a7..002ce820 100644 --- a/.github/workflows/pr_linting.yml +++ b/.github/workflows/pr_linting.yml @@ -7,8 +7,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: psf/black@master - - uses: isort/isort-action@master - with: - configuration: " --check-only --diff --profile black" + - uses: CodeForPoznan/actions/lint-backend@v1 From a10a2c9eb21d97eb333fd761602c833d1817ebb5 Mon Sep 17 00:00:00 2001 From: Wojciech Patelka Date: Wed, 18 Jan 2023 11:54:44 +0100 Subject: [PATCH 3/5] [CFP-506] Use latest release --- .github/workflows/pr_linting.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_linting.yml b/.github/workflows/pr_linting.yml index 002ce820..95f67f9f 100644 --- a/.github/workflows/pr_linting.yml +++ b/.github/workflows/pr_linting.yml @@ -7,4 +7,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: CodeForPoznan/actions/lint-backend@v1 + - uses: CodeForPoznan/actions/lint-backend@latest From 9efe4320a35327a0206c1f8c98e713ee37c0f87e Mon Sep 17 00:00:00 2001 From: Wojciech Patelka Date: Wed, 18 Jan 2023 11:56:30 +0100 Subject: [PATCH 4/5] [CFP-506] Use latest release --- .github/workflows/pr_linting.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_linting.yml b/.github/workflows/pr_linting.yml index 95f67f9f..2a8d3976 100644 --- a/.github/workflows/pr_linting.yml +++ b/.github/workflows/pr_linting.yml @@ -7,4 +7,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: CodeForPoznan/actions/lint-backend@latest + - uses: CodeForPoznan/actions/lint-backend@master From 29a037793812cdfb4f63ab88f4ec5bbf0067e121 Mon Sep 17 00:00:00 2001 From: Wojciech Patelka Date: Fri, 27 Jan 2023 11:14:16 +0100 Subject: [PATCH 5/5] Update .github/workflows/pr_linting.yml Co-authored-by: Artur Tamborski --- .github/workflows/pr_linting.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_linting.yml b/.github/workflows/pr_linting.yml index 2a8d3976..4395fd2c 100644 --- a/.github/workflows/pr_linting.yml +++ b/.github/workflows/pr_linting.yml @@ -7,4 +7,5 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: CodeForPoznan/actions/lint-backend@master + - uses: CodeForPoznan/actions/setup-backend@v2 + - uses: CodeForPoznan/actions/lint-backend@v2