fix: update build script (#65) #33
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
name: Python Linting | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- 'py-denormalized/**' | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- 'py-denormalized/**' | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: py-denormalized # Set the working directory for all run steps | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
- name: Install Ruff | |
run: pip install ruff | |
- name: Run Ruff | |
# Ruff will look for pyproject.toml in the py-denormalized directory | |
run: | | |
# Run Ruff linter | |
ruff check . | |
# Run Ruff formatter | |
ruff format . --check |