$ TERM='' make -s help
Usage:
make <target>
code
verify run all verifications
test run tests
format run formatter
lint run linter
artifact
install install package locally
dist generate package artifacts
docs generate documentation
deploy deploy Python package to PyPI
general
deps install dependencies
clean clean environment
The tests are running with pytest inside of a docker-compose container
make test
# Run a specific test file with TEST=</path/to/file>
TEST=./tests/test_github.py make test
# Run a tests matching an expression TEST_FUNC=<expression>
TEST_FUNC="invalid" make test
# Add more verbose logs
LOGLEVEL=debug make test
poetry run mercado --help
make install
mercado --help
I use nektos/act tool to run the Git Hub Action locally.
act -j <JOB>
In order to run a specific test, set the appropriate OS and environment variable
act -j test --env TEST_FUNC=k3d --matrix os:ubuntu-latest
When local execution does not help, we can enable a remote debug with tmate
gh workflow run Test --ref <branch_name> -f debug_enabled=true
Generate the README with cog
- Install dist locally
- Run inside virtualenv
make docs
Record video with asciinema
asciinema rec docs/demo.cast
mercado is-latest kind
mercado install kind
mercado show kind
mercado list --label k8s --verbose --all
ctrl + d
Then use gifcast to convert the .cast
file to .gif
shave 10 rows from the bottom and 5 from the right.