Merge pull request #579 from h1dden-da3m0n/fix/wrong-test-ci-branch

ci: fix incorrect test branch checkout
This commit is contained in:
Odd Stråbø 2021-10-12 08:37:06 +02:00 committed by GitHub
commit e56826b588
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ on:
push: push:
branches: branches:
- master - master
pull_request_target: pull_request:
branches: branches:
- master - master
@ -27,12 +27,6 @@ jobs:
with: with:
python-version: ${{ matrix.py_version }} python-version: ${{ matrix.py_version }}
- name: Setup reviewdog
uses: reviewdog/action-setup@v1
if: ${{ env.PR_TRIGGERED == 'true' && matrix.py_version == '3.9' }}
with:
reviewdog_version: nightly
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
@ -52,13 +46,6 @@ jobs:
coverage xml coverage xml
coverage report coverage report
- name: Run reviewdog for PR checks-api
if: ${{ env.PR_TRIGGERED == 'true' && matrix.py_version == '3.9' }}
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
run: |
cat flake8.output | reviewdog -reporter=github-pr-check -f=flake8 -name="flake8"
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v2.1.0 uses: codecov/codecov-action@v2.1.0
if: ${{ matrix.py_version == '3.9' }} if: ${{ matrix.py_version == '3.9' }}