fix(rules): only process enabled rules add a rule (17) #27
Workflow file for this run
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: Build and test | |
on: | |
pull_request: { } | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
id: checkout | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies with poetry | |
run: | | |
sudo apt update | |
sudo apt install libpq-dev | |
pip install poetry | |
- run: poetry install --with dev | |
- run: poetry run isort --profile black --diff . | |
- run: poetry run black --check . | |
- run: poetry run ruff check . | |
- run: poetry run pylint dblinter tests | |
- run: poetry run pytest --cov=dblinter --cov-report=xml --cov-branch --cov-report term-missing | |
- name: Upload results to Codecov | |
uses: codecov/codecov-action@v4 |