Skip to content

Commit 30eb2c3

Browse files
authored
Merge pull request #2 from PythonIreland/copilot/add-csv-validation-action
Add GitHub Action for CSV validation
2 parents f82017d + 7af40ae commit 30eb2c3

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/validate-csv.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Validate CSV Files
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- master
8+
push:
9+
branches:
10+
- main
11+
- master
12+
13+
jobs:
14+
validate-csv:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: '3.12'
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install pytest==9.0.1
32+
33+
- name: Run CSV validation tests
34+
run: |
35+
pytest tests/test_csv.py -v

0 commit comments

Comments
 (0)