Skip to content

Instantly share code, notes, and snippets.

@kushagra7589
Last active January 5, 2024 13:55
Show Gist options
  • Save kushagra7589/c361e8a96a2f4309fd0dfa4409a76263 to your computer and use it in GitHub Desktop.
Save kushagra7589/c361e8a96a2f4309fd0dfa4409a76263 to your computer and use it in GitHub Desktop.
Using tox to run Markov usage examples

Setup

We are using tox to run compatibility tests of markov SDK for different python versions: 3.8, 3.9, 3.10

So first we need to make sure all these version are installed in our system

For mac OS

  1. Install required python versions for compatibility testing. We can use pyenv to manage python versions. To install python3.9.3
$ pyenv install 3.9.3
$ pyenv global 3.9.3

Similarly, install all required python versions

  1. Install tox
$ pip install tox

Run tox

  1. Clone into the usage examples repo
$ git clone https://github.com/markovml/usage-examples
  1. Edit the tox.ini file: Add your markov api token to the file at line 7. You can get the markov api token from https://app.markovml.com/wsp-9ii9732b28/settings?tab=token

  2. Run tox

$ tox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment