Binbash Leverage Command-Line tool.
Project description
Leverage CLI
Leverage CLI is the tool used to manage and interact with any Leverage project.
It transparently handles the most complex and error prone tasks that arise from working with a complex infrastructure definition like our Leverage Reference Architecture. Leverage CLI uses a dockerized approach to encapsulate the tools needed to perform such tasks and to free the user from having to deal with the configuration and management of said tools. Provides the means to interact with your Leverage project and allows you to define custom tasks to run.
Documentation
For installation instructions and all documentation regarding Leverage CLI, please refer to this page.
Running Tests
To run unit tests, pytest is the tool of choice, and the required dependencies are available in the corresponding dev-requirements.txt
.
Integration tests are implemented using bats. Bear in mind that bats tests are meant to be run in a throwaway environment since they perform filesystem manipulations and installation and removal of packages, and the cleanup may not be completely thorough. As such, is highly recommended to run these tests using de docker image.
Manually
Unit tests:
pip3 install -r dev-requirements.txt
python3 -m pytest
Integration tests:
bats -r tests/bats
Using docker image
A Dockerfile suited for running all tests is provided along with useful Makefile targets.
To build such image run make build-image
.
To run all tests make tests
. Alternatively make test-unit
or make test-int
for unit or integration tests respectively.
Release Process
- On every PR, a Github Action workflow is triggered to create/update a release draft.
- The version number is determined by the labels of those PRs (major, minor, fix).
- The release draft has to be manually published. This allows for any number of PR (features, fixes) to make the cut.
- Once a release is published, another workflow is triggered to create and push the package to PyPi.
Contributors/Contributing
- Leverage CLI was initially based on Pynt: https://github.com/rags/pynt
License
Leverage CLI is licensed under MIT licenseBinBash Inc
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for leverage-1.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64499dbc715849e2e7cf4aa9ade85d4a55cc18c1274803f3460b9a7814163524 |
|
MD5 | 424c2b8fc68c172f1e4b1ed39d442341 |
|
BLAKE2b-256 | 915e7f8d5592d27cd3cb0bd8a668aa1aaf5721e51f6d432031efeb43b82ab957 |