GitHub Actions runs the automated checks for pull requests and publishes releases to PyPI.
For local development, install the dependencies with Poetry and run the unit tests with pytest. The test suite runs against all supported Python versions in CI.
To setup your environment:
- Install Python
- Install Pyenv
brew update
brew install pyenv- Install your favorite Python version (>= 3.10 please!)
pyenv install <YOUR_FAVORITE_VERSION>- Install Poetry, see: https://python-poetry.org/docs/#installation
- Install Dependencies
poetry install -vThis repo contains the submodule mauth-protocol-test-suite so requires a flag when initially cloning in order to clone and init submodules:
git clone --recurse-submodules git@github.com:mdsol/mauth-client-python.gitIf you have already cloned before the submodule was introduced, then run:
cd tests/mauth-protocol-test-suite
git submodule update --initto init the submodule.
- Make any changes, update the tests and then run tests with
poetry run pytest. - Coverage report can be viewed using
open htmlcov/index.html. - To run a specific test file, use
poetry run pytest <SOME_FILE>.