From 1e214d3f666d4bdeeab077f41759a6bc01308610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20Tvrtkovi=C4=87?= Date: Sat, 19 Jul 2025 16:44:30 +0200 Subject: [PATCH 1/7] Update cattrs tests Updates the CI configuration for cattrs to use uv. --- .github/workflows/third_party.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index 4e2e895f..a0955263 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -291,19 +291,16 @@ jobs: with: path: typing-extensions-latest persist-credentials: false - - name: Install pdm for cattrs - run: pip install pdm - - name: Add latest typing-extensions as a dependency - run: | - cd cattrs - pdm remove typing-extensions - pdm add --dev ../typing-extensions-latest - - name: Install cattrs test dependencies - run: cd cattrs; pdm install --dev -G :all - - name: List all installed dependencies - run: cd cattrs; pdm list -vv - - name: Run cattrs tests - run: cd cattrs; pdm run pytest tests + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh + - name: Add local version of typing_extensions as a dependency + run: cd cattrs; uv add --editable ../typing-extensions-latest + - name: Install test dependencies + run: cd cattrs; uv sync --group test --all-extras + - name: List installed dependencies + run: cd cattrs; uv pip list + - name: Run tests + run: cd cattrs; uv run pytest tests sqlalchemy: name: sqlalchemy tests From 7c9345a08ef3090efb78497245f60d0f86b564ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20Tvrtkovi=C4=87?= Date: Sun, 20 Jul 2025 20:16:44 +0200 Subject: [PATCH 2/7] Switch to `astral-sh/setup-uv` --- .github/workflows/third_party.yml | 59 ++++++++++--------------------- 1 file changed, 18 insertions(+), 41 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index a0955263..a1771acd 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -50,13 +50,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - name: Setup Python - uses: actions/setup-python@v5 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v6 with: python-version: ${{ matrix.python-version }} - allow-prereleases: true - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Checkout pydantic run: git clone --depth=1 https://github.com/pydantic/pydantic.git || git clone --depth=1 https://github.com/pydantic/pydantic.git - name: Checkout typing_extensions @@ -83,12 +80,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - name: Setup Python - uses: actions/setup-python@v5 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v6 with: python-version: ${{ matrix.python-version }} - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Checkout typing_inspect run: git clone --depth=1 https://github.com/ilevkivskyi/typing_inspect.git || git clone --depth=1 https://github.com/ilevkivskyi/typing_inspect.git - name: Checkout typing_extensions @@ -120,13 +115,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - name: Setup Python - uses: actions/setup-python@v5 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v6 with: python-version: ${{ matrix.python-version }} - allow-prereleases: true - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Check out pycroscope run: git clone --depth=1 https://github.com/JelleZijlstra/pycroscope.git || git clone --depth=1 https://github.com/JelleZijlstra/pycroscope.git - name: Checkout typing_extensions @@ -158,13 +150,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - name: Setup Python - uses: actions/setup-python@v5 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v6 with: python-version: ${{ matrix.python-version }} - allow-prereleases: true - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Check out typeguard run: git clone --depth=1 https://github.com/agronholm/typeguard.git || git clone --depth=1 https://github.com/agronholm/typeguard.git - name: Checkout typing_extensions @@ -197,12 +186,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - name: Setup Python - uses: actions/setup-python@v5 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v6 with: python-version: ${{ matrix.python-version }} - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Check out typed-argument-parser run: git clone --depth=1 https://github.com/swansonk14/typed-argument-parser.git || git clone --depth=1 https://github.com/swansonk14/typed-argument-parser.git - name: Checkout typing_extensions @@ -241,13 +228,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - name: Setup Python - uses: actions/setup-python@v5 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v6 with: python-version: ${{ matrix.python-version }} - allow-prereleases: true - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Checkout mypy for stubtest and mypyc tests run: git clone --depth=1 https://github.com/python/mypy.git || git clone --depth=1 https://github.com/python/mypy.git - name: Checkout typing_extensions @@ -280,8 +264,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 60 steps: - - name: Setup Python - uses: actions/setup-python@v5 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v6 with: python-version: ${{ matrix.python-version }} - name: Checkout cattrs @@ -291,8 +275,6 @@ jobs: with: path: typing-extensions-latest persist-credentials: false - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Add local version of typing_extensions as a dependency run: cd cattrs; uv add --editable ../typing-extensions-latest - name: Install test dependencies @@ -317,13 +299,10 @@ jobs: runs-on: ubuntu-22.04 timeout-minutes: 60 steps: - - name: Setup Python - uses: actions/setup-python@v5 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v6 with: python-version: ${{ matrix.python-version }} - allow-prereleases: true - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Checkout sqlalchemy run: git clone -b ${{ matrix.checkout-ref }} --depth=1 https://github.com/sqlalchemy/sqlalchemy.git || git clone -b ${{ matrix.checkout-ref }} --depth=1 https://github.com/sqlalchemy/sqlalchemy.git - name: Checkout typing_extensions @@ -357,8 +336,8 @@ jobs: matrix: python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] steps: - - name: Setup Python - uses: actions/setup-python@v5 + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v6 with: python-version: ${{ matrix.python-version }} - name: Checkout litestar @@ -368,8 +347,6 @@ jobs: with: path: typing-extensions-latest persist-credentials: false - - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Run litestar tests run: uv run --with=../typing-extensions-latest -- python -m pytest tests/unit/test_typing.py tests/unit/test_dto working-directory: litestar From 6966de768d690a3da90537ba648689ba91c903e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20Tvrtkovi=C4=87?= Date: Tue, 22 Jul 2025 23:17:15 +0200 Subject: [PATCH 3/7] Pin setup-uv --- .github/workflows/third_party.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index a1771acd..4272cf55 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -51,7 +51,7 @@ jobs: timeout-minutes: 60 steps: - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1 with: python-version: ${{ matrix.python-version }} - name: Checkout pydantic @@ -81,7 +81,7 @@ jobs: timeout-minutes: 60 steps: - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1 with: python-version: ${{ matrix.python-version }} - name: Checkout typing_inspect @@ -116,7 +116,7 @@ jobs: timeout-minutes: 60 steps: - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1 with: python-version: ${{ matrix.python-version }} - name: Check out pycroscope @@ -151,7 +151,7 @@ jobs: timeout-minutes: 60 steps: - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1 with: python-version: ${{ matrix.python-version }} - name: Check out typeguard @@ -187,7 +187,7 @@ jobs: timeout-minutes: 60 steps: - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1 with: python-version: ${{ matrix.python-version }} - name: Check out typed-argument-parser @@ -229,7 +229,7 @@ jobs: timeout-minutes: 60 steps: - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1 with: python-version: ${{ matrix.python-version }} - name: Checkout mypy for stubtest and mypyc tests @@ -265,7 +265,7 @@ jobs: timeout-minutes: 60 steps: - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1 with: python-version: ${{ matrix.python-version }} - name: Checkout cattrs @@ -300,7 +300,7 @@ jobs: timeout-minutes: 60 steps: - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1 with: python-version: ${{ matrix.python-version }} - name: Checkout sqlalchemy @@ -337,7 +337,7 @@ jobs: python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ] steps: - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1 with: python-version: ${{ matrix.python-version }} - name: Checkout litestar From 37e21a111c67627d2880611d1d0de44603974ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20Tvrtkovi=C4=87?= Date: Tue, 22 Jul 2025 23:28:39 +0200 Subject: [PATCH 4/7] Avoid `uv pip --system` since it doesn't work with uv python --- .github/workflows/third_party.yml | 47 +++++++++++++++---------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index 4272cf55..2ef32725 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -94,16 +94,17 @@ jobs: - name: Install typing_inspect test dependencies run: | set -x + uv venv .venv cd typing_inspect - uv pip install --system -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" + uv pip install -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" - name: Install typing_extensions latest - run: uv pip install --system "typing-extensions @ ./typing-extensions-latest" + run: uv pip install "typing-extensions @ ./typing-extensions-latest" - name: List all installed dependencies run: uv pip freeze - name: Run typing_inspect tests run: | cd typing_inspect - pytest + uv run pytest pycroscope: name: pycroscope tests @@ -129,10 +130,11 @@ jobs: - name: Install pycroscope test requirements run: | set -x + uv venv .venv cd pycroscope - uv pip install --system 'pycroscope[tests] @ .' --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" + uv pip install 'pycroscope[tests] @ .' --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" - name: Install typing_extensions latest - run: uv pip install --system "typing-extensions @ ./typing-extensions-latest" + run: uv pip install "typing-extensions @ ./typing-extensions-latest" - name: List all installed dependencies run: uv pip freeze - name: Run pycroscope tests @@ -164,17 +166,18 @@ jobs: - name: Install typeguard test requirements run: | set -x + uv venv .venv cd typeguard - uv pip install --system "typeguard @ ." --group test --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" + uv pip install "typeguard @ ." --group test --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" - name: Install typing_extensions latest - run: uv pip install --system "typing-extensions @ ./typing-extensions-latest" + run: uv pip install "typing-extensions @ ./typing-extensions-latest" - name: List all installed dependencies run: uv pip freeze - name: Run typeguard tests run: | cd typeguard export PYTHON_COLORS=0 # A test fails if tracebacks are colorized - pytest + uv run pytest typed-argument-parser: name: typed-argument-parser tests @@ -206,17 +209,18 @@ jobs: - name: Install typed-argument-parser test requirements run: | set -x + uv venv .venv cd typed-argument-parser - uv pip install --system "typed-argument-parser @ ." --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" - uv pip install --system pytest --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" + uv pip install "typed-argument-parser @ ." --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" + uv pip install pytest --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" - name: Install typing_extensions latest - run: uv pip install --system "typing-extensions @ ./typing-extensions-latest" + run: uv pip install "typing-extensions @ ./typing-extensions-latest" - name: List all installed dependencies run: uv pip freeze - name: Run typed-argument-parser tests run: | cd typed-argument-parser - pytest + uv run pytest mypy: name: stubtest & mypyc tests @@ -242,17 +246,18 @@ jobs: - name: Install mypy test requirements run: | set -x + uv venv .venv cd mypy - uv pip install --system -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" - uv pip install --system -e . + uv pip install -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" + uv pip install -e . - name: Install typing_extensions latest - run: uv pip install --system "typing-extensions @ ./typing-extensions-latest" + run: uv pip install "typing-extensions @ ./typing-extensions-latest" - name: List all installed dependencies run: uv pip freeze - name: Run stubtest & mypyc tests run: | cd mypy - pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py + uv run pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py cattrs: name: cattrs tests @@ -310,18 +315,10 @@ jobs: with: path: typing-extensions-latest persist-credentials: false - - name: Install sqlalchemy test dependencies - run: uv pip install --system tox setuptools - - name: List installed dependencies - # Note: tox installs SQLAlchemy and its dependencies in a different isolated - # environment before running the tests. To see the dependencies installed - # in the test environment, look for the line 'freeze> python -m pip freeze --all' - # in the output of the test step below. - run: uv pip list - name: Run sqlalchemy tests run: | cd sqlalchemy - tox -e github-nocext \ + uvx --with setuptools tox -e github-nocext \ --force-dep "typing-extensions @ file://$(pwd)/../typing-extensions-latest" \ -- -q --nomemory --notimingintensive From 6aa23f765e9e7140420c690b36c3af80dedf2677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20Tvrtkovi=C4=87?= Date: Tue, 22 Jul 2025 23:40:25 +0200 Subject: [PATCH 5/7] Run `uv run` with `--directory` when necessary --- .github/workflows/third_party.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index 2ef32725..0c20abce 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -103,8 +103,7 @@ jobs: run: uv pip freeze - name: Run typing_inspect tests run: | - cd typing_inspect - uv run pytest + uv run --directory typing_inspect pytest pycroscope: name: pycroscope tests @@ -139,8 +138,7 @@ jobs: run: uv pip freeze - name: Run pycroscope tests run: | - cd pycroscope - pytest pycroscope/ + uv run --directory pycroscope pytest pycroscope/ typeguard: name: typeguard tests @@ -175,9 +173,8 @@ jobs: run: uv pip freeze - name: Run typeguard tests run: | - cd typeguard export PYTHON_COLORS=0 # A test fails if tracebacks are colorized - uv run pytest + uv run --directory typeguard pytest typed-argument-parser: name: typed-argument-parser tests @@ -219,8 +216,7 @@ jobs: run: uv pip freeze - name: Run typed-argument-parser tests run: | - cd typed-argument-parser - uv run pytest + uv run --directory typed-argument-parser pytest mypy: name: stubtest & mypyc tests @@ -256,8 +252,7 @@ jobs: run: uv pip freeze - name: Run stubtest & mypyc tests run: | - cd mypy - uv run pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py + uv run --directory mypy pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py cattrs: name: cattrs tests From 5c8c5f8f18650505eda41faa504a1a0315388c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20Tvrtkovi=C4=87?= Date: Wed, 23 Jul 2025 12:04:25 +0200 Subject: [PATCH 6/7] Create venv in package directory when necessary --- .github/workflows/third_party.yml | 40 +++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index 0c20abce..8d3930f4 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -94,16 +94,16 @@ jobs: - name: Install typing_inspect test dependencies run: | set -x - uv venv .venv cd typing_inspect + uv venv .venv uv pip install -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" - name: Install typing_extensions latest - run: uv pip install "typing-extensions @ ./typing-extensions-latest" + run: cd typing_inspect; uv pip install "typing-extensions @ ../typing-extensions-latest" - name: List all installed dependencies - run: uv pip freeze + run: cd typing_inspect; uv pip freeze - name: Run typing_inspect tests run: | - uv run --directory typing_inspect pytest + cd typing_inspect; uv run pytest pycroscope: name: pycroscope tests @@ -129,16 +129,16 @@ jobs: - name: Install pycroscope test requirements run: | set -x - uv venv .venv cd pycroscope + uv venv .venv uv pip install 'pycroscope[tests] @ .' --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" - name: Install typing_extensions latest - run: uv pip install "typing-extensions @ ./typing-extensions-latest" + run: cd pycroscope; uv pip install "typing-extensions @ ../typing-extensions-latest" - name: List all installed dependencies - run: uv pip freeze + run: cd pycroscope; uv pip freeze - name: Run pycroscope tests run: | - uv run --directory pycroscope pytest pycroscope/ + cd pycroscope; uv run pytest pycroscope/ typeguard: name: typeguard tests @@ -164,17 +164,17 @@ jobs: - name: Install typeguard test requirements run: | set -x - uv venv .venv cd typeguard + uv venv .venv uv pip install "typeguard @ ." --group test --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" - name: Install typing_extensions latest - run: uv pip install "typing-extensions @ ./typing-extensions-latest" + run: cd typeguard; uv pip install "typing-extensions @ ../typing-extensions-latest" - name: List all installed dependencies - run: uv pip freeze + run: cd typeguard; uv pip freeze - name: Run typeguard tests run: | export PYTHON_COLORS=0 # A test fails if tracebacks are colorized - uv run --directory typeguard pytest + cd typeguard; uv run pytest typed-argument-parser: name: typed-argument-parser tests @@ -206,17 +206,17 @@ jobs: - name: Install typed-argument-parser test requirements run: | set -x - uv venv .venv cd typed-argument-parser + uv venv .venv uv pip install "typed-argument-parser @ ." --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" uv pip install pytest --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" - name: Install typing_extensions latest - run: uv pip install "typing-extensions @ ./typing-extensions-latest" + run: cd typed-argument-parser; uv pip install "typing-extensions @ ../typing-extensions-latest" - name: List all installed dependencies - run: uv pip freeze + run: cd typed-argument-parser; uv pip freeze - name: Run typed-argument-parser tests run: | - uv run --directory typed-argument-parser pytest + cd typed-argument-parser; uv run pytest mypy: name: stubtest & mypyc tests @@ -242,17 +242,17 @@ jobs: - name: Install mypy test requirements run: | set -x - uv venv .venv cd mypy + uv venv .venv uv pip install -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)" uv pip install -e . - name: Install typing_extensions latest - run: uv pip install "typing-extensions @ ./typing-extensions-latest" + run: cd mypy; uv pip install "typing-extensions @ ../typing-extensions-latest" - name: List all installed dependencies - run: uv pip freeze + run: cd mypy; uv pip freeze - name: Run stubtest & mypyc tests run: | - uv run --directory mypy pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py + cd mypy; uv run pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py cattrs: name: cattrs tests From 4feb06023727e55c5394dd3527e808a9b14d43ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20Tvrtkovi=C4=87?= Date: Wed, 23 Jul 2025 13:26:02 +0200 Subject: [PATCH 7/7] Use `--no-project` with `uv run` --- .github/workflows/third_party.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index 8d3930f4..b1a2ae42 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -103,7 +103,7 @@ jobs: run: cd typing_inspect; uv pip freeze - name: Run typing_inspect tests run: | - cd typing_inspect; uv run pytest + cd typing_inspect; uv run --no-project pytest pycroscope: name: pycroscope tests @@ -138,7 +138,7 @@ jobs: run: cd pycroscope; uv pip freeze - name: Run pycroscope tests run: | - cd pycroscope; uv run pytest pycroscope/ + cd pycroscope; uv run --no-project pytest pycroscope/ typeguard: name: typeguard tests @@ -174,7 +174,7 @@ jobs: - name: Run typeguard tests run: | export PYTHON_COLORS=0 # A test fails if tracebacks are colorized - cd typeguard; uv run pytest + cd typeguard; uv run --no-project pytest typed-argument-parser: name: typed-argument-parser tests @@ -216,7 +216,7 @@ jobs: run: cd typed-argument-parser; uv pip freeze - name: Run typed-argument-parser tests run: | - cd typed-argument-parser; uv run pytest + cd typed-argument-parser; uv run --no-project pytest mypy: name: stubtest & mypyc tests @@ -252,7 +252,7 @@ jobs: run: cd mypy; uv pip freeze - name: Run stubtest & mypyc tests run: | - cd mypy; uv run pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py + cd mypy; uv run --no-project pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py cattrs: name: cattrs tests