Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.01 KB

File metadata and controls

35 lines (27 loc) · 1.01 KB

Practices & Conventions

Publishing

poetry build
twine upload dist/*
  • Create wheel files in dist/: poetry build
  • Install wheel in current environment with pip: pip install path/to/deepstruct/dist/deepstruct-0.1.0-py3-none-any.whl

Running CI image locally

Install latest gitlab-runner (version 12.3 or up):

# For Debian/Ubuntu/Mint
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash

# For RHEL/CentOS/Fedora
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash

apt-get update
apt-get install gitlab-runner

$ gitlab-runner -v
Version:      12.3.0

Execute job tests: gitlab-runner exec docker test-python3.7

Running github action locally

Install https://github.com/nektos/act. Run act

Running pre-commit checks locally

  • Execute pre-commit manually: poetry run pre-commit run --all-files
  • Add pre-commit to your local git: poetry run pre-commit install