From 3ad698bb9719a8824520940cf4212e84e199dcc8 Mon Sep 17 00:00:00 2001 From: toonn Date: Thu, 15 Jul 2021 19:31:12 +0200 Subject: Actions: Add on pull_request to get status checks This should enable the pylint, pytest, flake8 and shellcheck lints to run when PRs are opened and have them act as status checks so PRs aren't merged without them passing. --- .github/workflows/doctest.yml | 2 +- .github/workflows/python.yml | 8 ++++++-- .github/workflows/shellcheck.yml | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/doctest.yml b/.github/workflows/doctest.yml index 4f3f8e7b..d7e027d8 100644 --- a/.github/workflows/doctest.yml +++ b/.github/workflows/doctest.yml @@ -12,7 +12,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v1 with: diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 59558a20..3bb993ea 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -4,7 +4,11 @@ on: push: paths: - '.github/workflows/python.yml' - - '*.py' + - '**.py' + pull_request: + paths: + - '.github/workflows/python.yml' + - '**.py' jobs: test_py: @@ -12,7 +16,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.5, 3.6, 3.7, 3.8] + python-version: [3.5, 3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v1 with: diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 22af007b..a5be89d9 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -5,6 +5,10 @@ on: paths: - '.github/workflows/shellcheck.yml' - 'ranger/data/scope.sh' + pull_request: + paths: + - '.github/workflows/shellcheck.yml' + - 'ranger/data/scope.sh' jobs: test_shellcheck: -- cgit 1.4.1-2-gfad0