mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-28 12:43:39 +08:00
Pin tox version (#1480)
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
||||
with:
|
||||
python-version: ${{ env[matrix.python-version] }}
|
||||
- name: Install tox
|
||||
run: pip install -U tox-factor
|
||||
run: pip install tox==3.27.1 tox-factor
|
||||
- name: Cache tox environment
|
||||
# Preserves .tox directory between runs for faster installs
|
||||
uses: actions/cache@v1
|
||||
@ -107,7 +107,7 @@ jobs:
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install tox
|
||||
run: pip install -U tox
|
||||
run: pip install tox==3.27.1
|
||||
- name: Install libsnappy-dev
|
||||
if: ${{ matrix.tox-environment == 'lint' }}
|
||||
run: sudo apt-get install -y libsnappy-dev
|
||||
|
@ -32,7 +32,7 @@ some aspects of development, including testing against multiple Python versions.
|
||||
To install `tox`, run:
|
||||
|
||||
```console
|
||||
$ pip install tox
|
||||
$ pip install tox==3.27.1
|
||||
```
|
||||
|
||||
You can run `tox` with the following arguments:
|
||||
@ -103,7 +103,7 @@ Run tests:
|
||||
|
||||
```sh
|
||||
# make sure you have all supported versions of Python installed
|
||||
$ pip install tox # only first time.
|
||||
$ pip install tox==3.27.1 # only first time.
|
||||
$ tox # execute in the root of the repository
|
||||
```
|
||||
|
||||
@ -162,7 +162,7 @@ For a deeper discussion, see: https://github.com/open-telemetry/opentelemetry-sp
|
||||
## Running Tests Locally
|
||||
|
||||
1. Go to your Contrib repo directory. `git clone git@github.com:open-telemetry/opentelemetry-python-contrib.git && cd opentelemetry-python-contrib`.
|
||||
2. Make sure you have `tox` installed. `pip install tox`.
|
||||
2. Make sure you have `tox` installed. `pip install tox==3.27.1`.
|
||||
3. Run `tox` without any arguments to run tests for all the packages. Read more about [tox](https://tox.readthedocs.io/en/latest/).
|
||||
|
||||
### Testing against a different Core repo branch/commit
|
||||
|
@ -124,7 +124,7 @@ Emeritus Maintainers:
|
||||
1. Go to your Contrib repo directory. `cd ~/git/opentelemetry-python-contrib`.
|
||||
2. Create a virtual env in your Contrib repo directory. `python3 -m venv my_test_venv`.
|
||||
3. Activate your virtual env. `source my_test_venv/bin/activate`.
|
||||
4. Make sure you have `tox` installed. `pip install tox`.
|
||||
4. Make sure you have `tox` installed. `pip install tox==3.27.1`.
|
||||
5. Run tests for a package. (e.g. `tox -e test-instrumentation-flask`.)
|
||||
|
||||
### Thanks to all the people who already contributed!
|
||||
|
Reference in New Issue
Block a user