Skip to content

Commit 9668d3b

Browse files
authored
Merge pull request #13948 from bluetech/tox-tweaks-2
A few more CI/tox tweaks
2 parents e4df841 + 665363a commit 9668d3b

File tree

6 files changed

+10
-16
lines changed

6 files changed

+10
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
package:
1717
runs-on: ubuntu-latest
1818
env:
19-
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.version }}
19+
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST: ${{ github.event.inputs.version }}
2020
timeout-minutes: 10
2121

2222
# Required by attest-build-provenance-github.
@@ -55,7 +55,7 @@ jobs:
5555
- name: Install tox
5656
run: |
5757
python -m pip install --upgrade pip
58-
pip install --upgrade tox
58+
pip install tox
5959
6060
- name: Generate release notes
6161
env:

.github/workflows/doc-check-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python-version: "3.13"
2929
cache: pip
3030

31-
- name: Install dependencies
31+
- name: Install tox
3232
run: |
3333
python -m pip install --upgrade pip
3434
pip install tox

.github/workflows/prepare-release-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
with:
3939
python-version: "3.13"
4040

41-
- name: Install dependencies
41+
- name: Install tox
4242
run: |
4343
python -m pip install --upgrade pip
44-
pip install --upgrade setuptools tox
44+
pip install tox
4545
4646
- name: Prepare release PR (minor/patch release)
4747
if: github.event.inputs.major == 'no'

.github/workflows/test.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ jobs:
268268
check-latest: true
269269
allow-prereleases: true
270270

271-
- name: Install dependencies
271+
- name: Install tox
272272
run: |
273273
python -m pip install --upgrade pip
274-
pip install tox coverage
274+
pip install tox
275275
276276
- name: Test without coverage
277277
if: "! matrix.use_coverage"
@@ -283,10 +283,6 @@ jobs:
283283
shell: bash
284284
run: tox run -e ${{ matrix.tox_env }}-coverage --installpkg `find dist/*.tar.gz`
285285

286-
- name: Generate coverage report
287-
if: "matrix.use_coverage"
288-
run: python -m coverage xml
289-
290286
- name: Upload coverage to Codecov
291287
if: "matrix.use_coverage"
292288
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7

.github/workflows/update-plugin-list.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Install tox
4141
run: |
4242
python -m pip install --upgrade pip
43-
pip install --upgrade tox
43+
pip install tox
4444
4545
- name: Update Plugin List
4646
run: tox -e update-plugin-list

tox.ini

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ commands =
6565
doctesting: {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest
6666
coverage: coverage combine
6767
coverage: coverage report -m
68+
# Run `coverage xml` only on CI.
69+
coverage: python -c 'import os; os.environ.get("CI") and os.execlp("coverage", "coverage", "xml")'
6870
passenv =
6971
COVERAGE_*
7072
PYTEST_ADDOPTS
@@ -108,7 +110,6 @@ deps =
108110
twisted25: twisted>=25
109111
asynctest: asynctest
110112
xdist: pytest-xdist>=2.1.0
111-
xdist: -e .
112113
# Can use the same wheel for all environments.
113114
package = wheel
114115
wheel_build_env = .pkg
@@ -178,9 +179,6 @@ description =
178179
run reverse dependency testing against pytest plugins under `{basepython}`
179180
# use latest versions of all plugins, including pre-releases
180181
pip_pre=true
181-
# use latest pip to get new dependency resolver (#7783)
182-
download=true
183-
install_command=python -m pip install {opts} {packages}
184182
changedir = testing/plugins_integration
185183
deps = -rtesting/plugins_integration/requirements.txt
186184
setenv =

0 commit comments

Comments
 (0)