Tutorial of publishing to help me not to forgot to anything :D
- setup.cfg
- init.py
Run pytests:
pytest -vvv --cov=pre_commit_dbt --cov-config=setup.cfg --cov-report=term-missing --cov-report=html
Run pre-commit:
pre-commit run --all-files
Try import:
pre-commit try-repo .
Bump version in Dockerfile - .github/.pre-commit-config-action.yaml
Build:
docker build . -t offbi/pre-commit-dbt
docker tag offbi/pre-commit-dbt:latest offbi/pre-commit-dbt:<version>
Test:
docker run offbi/pre-commit-dbt
Publish to Docker Hub
docker push offbi/pre-commit-dbt
docker push offbi/pre-commit-dbt:<version>
Bump docker version in action.yml