Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nedbat/coveragepy
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: nedbat/coveragepy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: nedbat/tox-uv
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 3 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 2, 2024

  1. build: use tox-uv to speed test runs

    nedbat committed Nov 2, 2024
    Copy the full SHA
    0de666a View commit details
  2. hynek's advice

    nedbat committed Nov 2, 2024
    Copy the full SHA
    fcf7385 View commit details

Commits on Nov 3, 2024

  1. uv_seed=True

    nedbat committed Nov 3, 2024
    Copy the full SHA
    13ec01a View commit details
Showing with 12 additions and 7 deletions.
  1. +9 −6 .github/workflows/testsuite.yml
  2. +3 −1 tox.ini
15 changes: 9 additions & 6 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
@@ -98,20 +98,23 @@ jobs:
# python -c "import urllib.request as r; exec(r.urlopen('https://bit.ly/pydoctor').read())"
env | sort
- name: "Install dependencies"
run: |
set -xe
python -m pip install -r requirements/tox.pip
#- name: "Install dependencies"
# run: |
# set -xe
# python -m pip install -r requirements/tox.pip

- name: Install uv
uses: hynek/setup-cached-uv@v2

- name: "Run tox for ${{ matrix.python-version }}"
run: |
python -m tox -- -rfsEX
uvx --with tox-uv tox -- -rfsEX
- name: "Retry tox for ${{ matrix.python-version }}"
if: failure()
run: |
# `exit 1` makes sure that the job remains red with flaky runs
python -m tox -- -rfsEX --lf -vvvvv && exit 1
uvx --with tox-uv tox -- -rfsEX --lf -vvvvv && exit 1
# This job aggregates test results. It's the required check for branch protection.
# https://github.com/marketplace/actions/alls-green#why
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ deps =

# Windows can't update the pip version with pip running, so use Python
# to install things.
install_command = python -m pip install -U {opts} {packages}
#install_command = python -m pip install -U {opts} {packages}

passenv = *
setenv =
@@ -35,6 +35,8 @@ setenv =
# Disable CPython's color output
PYTHON_COLORS=0

uv_seed = True

# $set_env.py: COVERAGE_PIP_ARGS - Extra arguments for `pip install`
# `--no-build-isolation` will let tox work with no network.
commands =