-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a83a2f
commit 35c67b3
Showing
1 changed file
with
18 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
--- | ||
name: Validate CSV | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
test-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install dependencies | ||
run: pip install -r linters/requirements.txt | ||
|
||
- name: Validate CSV | ||
run: python linters/lint-csv.py | ||
|
||
- name: Autoformat CSV | ||
run: python linters/autoformat-csv.py | ||
python-version: "3.12" | ||
- run: pip install -r linters/requirements.txt | ||
- run: python linters/lint-csv.py | ||
- run: python linters/autoformat-csv.py | ||
- run: | | ||
git config --global user.name 'Jon Banafato' | ||
git config --global user.email '[email protected]' | ||
git commit -am "Autoformat CSV" | ||
git push |