From 0f579526501f6fb150db6823d8a436b94883dc7d Mon Sep 17 00:00:00 2001 From: jorenham Date: Mon, 9 Dec 2024 19:31:37 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20fix=20`typetest-oldest-supported?= =?UTF-8?q?-numpy`=20CI=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d759e63..5950fbe3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,13 +70,31 @@ jobs: - name: setup uv uses: astral-sh/setup-uv@v4 - - name: install - run: | - uv sync --frozen --python=$(uv run --frozen scripts/version_bounds.py python) - uv pip install --upgrade numpy==$(uv run --frozen scripts/version_bounds.py numpy) + - name: basedpyright + run: > + uv run + --python $(uv run --frozen scripts/version_bounds.py python) + --with numpy==$(uv run --frozen scripts/version_bounds.py numpy) + basedpyright - - name: typetest - run: uv run poe typetest + - name: basedmypy + run: > + uv run + --no-editable + --isolated + --python $(uv run --frozen scripts/version_bounds.py python) + --with numpy==$(uv run --frozen scripts/version_bounds.py numpy) + mypy --config-file=pyproject.toml . - name: stubtest - run: uv run poe stubtest + run: > + uv run + --no-editable + --isolated + --python $(uv run --frozen scripts/version_bounds.py python) + --with numpy==$(uv run --frozen scripts/version_bounds.py numpy) + stubtest + --mypy-config-file pyproject.toml + --allowlist .mypyignore + --ignore-unused-allowlist + scipy