Skip to content

Commit

Permalink
See if this works
Browse files Browse the repository at this point in the history
  • Loading branch information
invisibleroads committed May 22, 2024
1 parent 5c2b069 commit ee95aec
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,28 @@ name: Validate CSV
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main
permissions:
contents: write
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v4
if: github.event_name == 'push'
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r linters/requirements.txt
- run: python linters/autoformat-csv.py
- run: python linters/lint-csv.py
- run: |
git config --global user.name 'Jon Banafato'
git config --global user.email '[email protected]'
git config user.name 'Jon Banafato'
git config user.email '[email protected]'
git diff --quiet || git commit -am "Autoformat CSV"
git push

0 comments on commit ee95aec

Please sign in to comment.