From b5af845c2ea2dd3a83cf3fb88e8db04cdd49eb81 Mon Sep 17 00:00:00 2001 From: krishnakumar Date: Mon, 5 Jun 2023 09:31:40 +0530 Subject: [PATCH 1/3] Update django.yml --- .github/workflows/django.yml | 41 +++++++++++++++++------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 4dd3dcb..600950b 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -1,30 +1,27 @@ -name: Django CI +name: reviewdog on: - push: - branches: [ master ] pull_request: - branches: [ master ] + branches: + - master jobs: - build: - + eslint: + name: runner / linter runs-on: ubuntu-latest - strategy: - max-parallel: 4 - matrix: - python-version: [3.7, 3.8, 3.9] + permissions: + contents: read + pull-requests: write steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install Dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Run Tests - run: | - python manage.py test + - uses: actions/checkout@v2 + with: + fetch-depth: 1 + ref: ${{ github.head_ref }} + + - name: wemake-python-styleguide + uses: wemake-services/wemake-python-styleguide + with: + reporter: 'github-pr-review' + env: + GITHUB_TOKEN: ${{ secrets.github_token }} From ac73a0a9a9e2de835c2ae1ae0282f82946a798ad Mon Sep 17 00:00:00 2001 From: krishnakumar Date: Mon, 5 Jun 2023 09:34:14 +0530 Subject: [PATCH 2/3] Update django.yml --- .github/workflows/django.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 600950b..63ef2ea 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -6,7 +6,7 @@ on: - master jobs: - eslint: + linter: name: runner / linter runs-on: ubuntu-latest permissions: @@ -19,6 +19,7 @@ jobs: fetch-depth: 1 ref: ${{ github.head_ref }} + - name: wemake-python-styleguide uses: wemake-services/wemake-python-styleguide with: From 41ec32bcb8d4777688c84dc91a41c9ba2b00fd5d Mon Sep 17 00:00:00 2001 From: krishnakumar Date: Mon, 5 Jun 2023 09:38:33 +0530 Subject: [PATCH 3/3] Update django.yml --- .github/workflows/django.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 63ef2ea..fa38f0d 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -1,28 +1,17 @@ name: reviewdog - on: pull_request: branches: - master jobs: - linter: - name: runner / linter + pyright: + name: pyright runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - steps: - uses: actions/checkout@v2 + - uses: jordemort/action-pyright@v1 with: - fetch-depth: 1 - ref: ${{ github.head_ref }} - - - - name: wemake-python-styleguide - uses: wemake-services/wemake-python-styleguide - with: - reporter: 'github-pr-review' - env: - GITHUB_TOKEN: ${{ secrets.github_token }} + github_token: ${{ secrets.GITHUB_TOKEN }} # You need this + reporter: github-pr-review # Change reporter. + lib: true