diff --git a/.evergreen/config.yml b/.evergreen/config.yml index 928a56df1..8062d3565 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -359,7 +359,7 @@ functions: ${PREPARE_SHELL} alias python=${PYTHON_BINARY} - python -m tox -e test-mockupdb + python -m tox -m test-mockupdb "run doctests": - command: shell.exec diff --git a/.evergreen/run-doctests.sh b/.evergreen/run-doctests.sh index 39e5102b6..be71f1789 100644 --- a/.evergreen/run-doctests.sh +++ b/.evergreen/run-doctests.sh @@ -4,4 +4,4 @@ set -o xtrace set -o errexit ${PYTHON_BINARY} -m pip install tox -${PYTHON_BINARY} -m tox -e doc-test +${PYTHON_BINARY} -m tox -m doc-test diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index d7c442cc4..93e10ac56 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -42,7 +42,7 @@ jobs: mongodb-version: 4.4 - name: Run tests run: | - tox -e test + tox -m test mypytest: name: Run mypy @@ -64,13 +64,13 @@ jobs: pip install tox - name: Run mypy run: | - tox -e typecheck-mypy + tox -m typecheck-mypy - name: Run pyright run: | - tox -e typecheck-pyright + tox -m typecheck-pyright - name: Run pyright strict run: | - tox -e typecheck-pyright-strict + tox -m typecheck-pyright-strict linkcheck: name: Check Links @@ -86,4 +86,4 @@ jobs: pip install tox - name: Check links run: | - tox -e linkcheck + tox -m linkcheck diff --git a/RELEASE.rst b/RELEASE.rst index caa67d381..74a45e829 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -36,7 +36,7 @@ Doing a Release To test locally, ``python3 setup.py test`` will build the C extensions and test. ``python3 tools/clean.py`` will remove the extensions, and then ``python3 setup.py --no_ext test`` will run the tests without - them. You can also run the doctests: ``tox -e doc-test``. + them. You can also run the doctests: ``tox -m doc-test``. 2. Check Jira to ensure all the tickets in this version have been completed. diff --git a/doc/index.rst b/doc/index.rst index 7e357c2a4..2f0ba1d36 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -103,7 +103,7 @@ following command from the root directory of the **PyMongo** source: .. code-block:: bash $ pip install tox - $ tox -e docs + $ tox -m doc Indices and tables ------------------ diff --git a/tox.ini b/tox.ini index 240126f8a..ac65ed1ad 100644 --- a/tox.ini +++ b/tox.ini @@ -24,6 +24,19 @@ envlist = doc-test, # Linkcheck sphinx docs linkcheck +labels = # Use labels and -m instead of -e so that tox -m