-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding github actions, precommit, and fix for travis
Adding pre-commit files GitHub actions, and Python 3 on Travis Fix missing pip Adding pre-commit instructions Using bionic Fix Drop extra parts, add pip Setuptools
- Loading branch information
Showing
6 changed files
with
105 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Tests | ||
on: [push] | ||
|
||
jobs: | ||
formatting: | ||
name: Formatting | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.7' | ||
architecture: 'x64' | ||
|
||
- name: Install pre-commit | ||
run: python -m pip install pre-commit | ||
|
||
- name: Run pre-commit | ||
run: pre-commit run --all | ||
|
||
- name: Display format changes | ||
run: git diff --exit-code | ||
if: always() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 19.3b0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- id: check-merge-conflict | ||
- id: check-case-conflict | ||
- id: check-symlinks | ||
- id: check-yaml | ||
- repo: local | ||
hooks: | ||
- id: docker-clang-format | ||
name: Docker Clang Format | ||
language: docker_image | ||
types: | ||
- c++ | ||
entry: unibeautify/clang-format:latest | ||
args: | ||
- -style=file | ||
- -i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 19.3b0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- id: check-merge-conflict | ||
- id: check-case-conflict | ||
- id: check-symlinks | ||
- id: check-yaml | ||
- repo: local | ||
hooks: | ||
- id: clang-format | ||
name: Clang Format | ||
language: system | ||
types: | ||
- c++ | ||
entry: clang-format | ||
args: | ||
- -style=file | ||
- -i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters