Skip to content

Commit

Permalink
TST: Pin tox<4
Browse files Browse the repository at this point in the history
Co-authored-by: Stuart Mumford <stuart@cadair.com>
  • Loading branch information
pllim and Cadair committed Dec 7, 2022
1 parent 4cb706e commit b0497bf
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
command: |
sudo apt update
sudo apt install texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super
pip install pip tox --upgrade
pip install pip "tox<4"
- run:
name: Run tests
command: tox -v
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci_cron_daily.yml
Expand Up @@ -38,6 +38,7 @@ jobs:
with:
submodules: false
coverage: codecov
toxdeps: "'tox<4'"
libraries: |
apt:
- language-pack-de
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_cron_weekly.yml
Expand Up @@ -83,7 +83,7 @@ jobs:
if: ${{ matrix.toxenv == 'linkcheck' }}
run: sudo apt-get install graphviz
- name: Install Python dependencies
run: python -m pip install --upgrade tox
run: python -m pip install --upgrade "tox<4"
- name: Run tests
run: tox ${{ matrix.toxargs}} -e ${{ matrix.toxenv}} -- ${{ matrix.toxposargs}}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci_workflows.yml
Expand Up @@ -50,6 +50,7 @@ jobs:
with:
submodules: false
coverage: codecov
toxdeps: "'tox<4'"
libraries: |
apt:
- language-pack-fr
Expand Down Expand Up @@ -86,6 +87,7 @@ jobs:
with:
submodules: false
coverage: codecov
toxdeps: "'tox<4'"
libraries: |
apt:
- language-pack-de
Expand Down Expand Up @@ -116,7 +118,7 @@ jobs:
# test the ability to run the test suite in parallel.
# Numpy is pinned to avoid building it from source for numpy 1.21.5
- name: Install dependencies for Python 3.8
run: /opt/python/cp38-cp38/bin/pip install tox
run: /opt/python/cp38-cp38/bin/pip install "tox<4"
- name: Run tests for Python 3.8
run: /opt/python/cp38-cp38/bin/python -m tox -e py38-numpy120-test -- -n=4 --durations=50
# We use the 3.8 build to check that running tests twice in a row in the
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1
if: (github.event_name == 'push' || github.event_name == 'pull_request')
with:
toxdeps: "'tox<4'"
upload_to_pypi: false
upload_to_anaconda: false
test_extras: test
Expand All @@ -35,6 +36,7 @@ jobs:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1
if: (github.repository == 'astropy/astropy' && ( startsWith(github.ref, 'refs/tags/v') || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Build all wheels')))
with:
toxdeps: "'tox<4'"

# We upload to PyPI for all tags starting with v but not ones ending in .dev
upload_to_pypi: ${{ startsWith(github.ref, 'refs/tags/v') && !endsWith(github.ref, '.dev') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -8,6 +8,7 @@ requires =
setuptools >= 30.3.0
pip >= 19.3.1
tox-pypi-filter >= 0.12
tox < 4
isolated_build = true

[testenv]
Expand Down

0 comments on commit b0497bf

Please sign in to comment.