Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test centralized GitHub actions config #112

Merged
merged 59 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
cbacb95
Test new pre commit file
wagnerlmichael Mar 26, 2024
9edac7f
Test commit
wagnerlmichael Mar 26, 2024
9806ee6
Fix repo name
wagnerlmichael Mar 26, 2024
853c909
Try adding yaml extension
wagnerlmichael Mar 26, 2024
b0a4932
Try to remove yaml cutoff
wagnerlmichael Mar 26, 2024
388dcda
Test another path version
wagnerlmichael Mar 26, 2024
e70c781
Update reference
wagnerlmichael Mar 28, 2024
e84f7db
Change uses value to one line
wagnerlmichael Mar 28, 2024
91bed52
Remove test print
wagnerlmichael Mar 28, 2024
2381cee
Add hooks
wagnerlmichael Mar 28, 2024
57fec93
test line length
wagnerlmichael Apr 8, 2024
b6526bb
Add checkout for composite actions py script
wagnerlmichael Apr 8, 2024
44a513d
Fix path
wagnerlmichael Apr 8, 2024
402c93b
Fix path
wagnerlmichael Apr 8, 2024
603ad48
Try new path
wagnerlmichael Apr 8, 2024
7a45fdc
Edit py file
wagnerlmichael Apr 8, 2024
aca9faf
Add dir print
wagnerlmichael Apr 8, 2024
9b0504a
Change uses value to call action in different way
wagnerlmichael Apr 9, 2024
19b437d
test commit
wagnerlmichael Apr 9, 2024
bb9e50b
test commit
wagnerlmichael Apr 9, 2024
50e9850
Test commit
wagnerlmichael Apr 15, 2024
0090dfb
Test commit
wagnerlmichael Apr 15, 2024
c5b08be
Remove spaces in hook string
wagnerlmichael Apr 15, 2024
0ad1767
Test commit
wagnerlmichael Apr 15, 2024
5bdf621
Linter changes
wagnerlmichael Apr 15, 2024
8e784c4
Fix yaml structure
wagnerlmichael Apr 15, 2024
3fb0026
Fix indentation
wagnerlmichael Apr 15, 2024
854b825
Fix indentation
wagnerlmichael Apr 15, 2024
e7e422e
Fix indentation and structure of yaml
wagnerlmichael Apr 15, 2024
61a7eee
Remove top level pre-commit
wagnerlmichael Apr 15, 2024
2f9bdc3
Add spaces to delimit hooks
wagnerlmichael Apr 15, 2024
391d05e
Re add pre commit config yaml
wagnerlmichael Apr 15, 2024
9555036
Test commit
wagnerlmichael Apr 15, 2024
f6b7a99
Test change
wagnerlmichael Apr 15, 2024
db5ed3a
Correct formatting
wagnerlmichael Apr 15, 2024
93f1bcb
Add new line
wagnerlmichael Apr 15, 2024
6ae4552
Test commit
wagnerlmichael Apr 15, 2024
31f9dba
Remove black from per-commit workflow
wagnerlmichael Apr 16, 2024
52a999e
Reset from testing
wagnerlmichael Apr 16, 2024
88ee8e8
Add local hooks to git ignore
wagnerlmichael Apr 16, 2024
765f160
Test hooks
wagnerlmichael Apr 16, 2024
edf230a
Test commit
wagnerlmichael Apr 16, 2024
c8a1d0b
Test commit
wagnerlmichael Apr 16, 2024
9bae303
Comment out pre-commit
wagnerlmichael Apr 16, 2024
435c63d
Merge branch 'main' into Test-centralized-github-actions-config
wagnerlmichael Apr 16, 2024
42c6649
Exclude local pre commit in git ignore
wagnerlmichael Apr 16, 2024
db7f6cf
Remove testing code
wagnerlmichael Apr 16, 2024
3e5dc9e
Test commit
wagnerlmichael Apr 16, 2024
2350f70
Remove test code
wagnerlmichael Apr 16, 2024
47ab199
Update .gitignore
dfsnow Apr 17, 2024
d425edc
Remove local hooks from git ignore
wagnerlmichael Apr 18, 2024
fcd4ee3
Merge branch 'Test-centralized-github-actions-config' of https://gith…
wagnerlmichael Apr 18, 2024
3eef4e9
Remove hooks interface
wagnerlmichael Apr 18, 2024
42f928f
Update checkout version and remove python ref
wagnerlmichael Apr 18, 2024
23911f2
Re-add top level pre-commit-config
wagnerlmichael Apr 18, 2024
376992c
Change name of precommit checks step
wagnerlmichael Apr 18, 2024
3185148
Add new name for checkout
wagnerlmichael Apr 18, 2024
49fcb1c
Revert name
wagnerlmichael Apr 18, 2024
2d79f00
Change step name
wagnerlmichael Apr 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 4 additions & 21 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
on:
pull_request:
push:
Expand All @@ -10,24 +9,8 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout main code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.12

- name: Install pre-commit
run: sudo apt-get install pre-commit
shell: bash

- name: Cache pre-commit environment
uses: actions/cache@v2
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}

- name: Run pre-commit
run: pre-commit run --show-diff-on-failure --color=always --all-files
shell: bash
- name: Run pre-commit checks
uses: ccao-data/actions/pre-commit@create-composite-pre-commit-action
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
repos:
- repo: https://github.com/adrienverge/yamllint
rev: v1.26.3 # Adjust to the latest tag if needed
rev: v1.32.0
hooks:
- id: yamllint
files: '.*\.yaml$'
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.18
hooks:
Expand Down
Loading