Skip to content

Commit

Permalink
ci: run tests on pull requests as well
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed May 29, 2023
1 parent dbf8bb5 commit 06532fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/python.yaml
Expand Up @@ -5,9 +5,7 @@

name: Python

on:
pull_request:
push:
on: [push, pull_request]

jobs:
# Adapted from https://github.com/marketplace/actions/skip-duplicate-actions
Expand Down
2 changes: 1 addition & 1 deletion src/nitpick/resources/presets/nitpick.toml
Expand Up @@ -20,7 +20,7 @@ include = [
"py://nitpick/resources/python/readthedocs",
"py://nitpick/resources/python/sonar-python",
"py://nitpick/resources/python/tox",
# "py://nitpick/resources/python/github-workflow", # TODO:
"py://nitpick/resources/python/github-workflow",

"py://nitpick/resources/any/prettier",
"py://nitpick/resources/any/codeclimate",
Expand Down
2 changes: 1 addition & 1 deletion src/nitpick/resources/python/github-workflow.toml
Expand Up @@ -4,7 +4,7 @@ url = "https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-gi

[".github/workflows/python.yaml"]
name = "Python"
on = ["push"]
on = ["push", "pull_request"]

[".github/workflows/python.yaml".jobs.build.strategy]
fail-fast = false
Expand Down
@@ -1,6 +1,7 @@
name: Python
on:
- push
- pull_request
jobs:
build:
strategy:
Expand Down

0 comments on commit 06532fe

Please sign in to comment.