Skip to content

Commit

Permalink
Move pre-commit from Travis to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul authored and yajo committed Dec 4, 2020
1 parent dd749cc commit 6d7ae89
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/pre-commit.yml.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: pre-commit

on:
pull_request:
push:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.0
6 changes: 0 additions & 6 deletions .travis.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ stages:

jobs:
include:
- stage: linting
name: "pre-commit"
install: pip install pre-commit
script: pre-commit run --all --show-diff-on-failure --verbose --color always
after_success:
before_install:
{%- if rebel_module_groups %}
{#- If there are rebel modules, we need separated test jobs and .pot generations #}
{%- for group in rebel_module_groups %}
Expand Down
3 changes: 2 additions & 1 deletion copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ _envops:
# Other Copier configurations
_exclude:
- /.git
- /.github
- /.github/workflows/lint.yml
- /.github/workflows/test.yml
- /.gitmodules
- /**.pyc
- /**.pyo
Expand Down

0 comments on commit 6d7ae89

Please sign in to comment.