-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (36 loc) · 918 Bytes
/
validate-csv.yml
File metadata and controls
43 lines (36 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Validate CSV Files
on:
pull_request:
branches:
- main
- master
push:
branches:
- main
- master
jobs:
validate-csv:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade uv
uv venv .venv
source .venv/bin/activate
uv pip install -r requirements.txt
- name: Run Pylint for Python codes
run: |
source .venv/bin/activate
pylint tests/*.py # wildcard, in case we'll have other python scripts there
- name: Run CSV validation tests
run: |
source .venv/bin/activate
pytest tests/test_csv.py -v