Skip to content

Adding Pylint into the GitHub Action workflow #52

Adding Pylint into the GitHub Action workflow

Adding Pylint into the GitHub Action workflow #52

Workflow file for this run

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