Skip to content

fix(rules): only process enabled rules add a rule (17) (#16) #14

fix(rules): only process enabled rules add a rule (17) (#16)

fix(rules): only process enabled rules add a rule (17) (#16) #14

Workflow file for this run

name: Build and push to Docker Hub image latest
on:
push:
branches:
- main
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
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: decathlon/dblinter:develop