diff options
author | toonn <toonn@toonn.io> | 2021-07-15 19:31:12 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-07-20 23:20:44 +0200 |
commit | 3ad698bb9719a8824520940cf4212e84e199dcc8 (patch) | |
tree | b2e423497c5f935a72ab5aac7c766ffdcae7eaee /.github/workflows | |
parent | 1e29bb4ad3b36bef238c156ffa46b7759fc2e190 (diff) | |
download | ranger-3ad698bb9719a8824520940cf4212e84e199dcc8.tar.gz |
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.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/doctest.yml | 2 | ||||
-rw-r--r-- | .github/workflows/python.yml | 8 | ||||
-rw-r--r-- | .github/workflows/shellcheck.yml | 4 |
3 files changed, 11 insertions, 3 deletions
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: |