From cbb0d4fc91ef9c6a0165a3b0d2a675a1a4ec27aa Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sun, 4 Oct 2026 17:37:14 +0800 Subject: [PATCH] [Mod] slim CI install and ignore missing torch imports --- .github/workflows/pythonapp.yml | 11 +++++------ pyproject.toml | 2 ++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index b544a3a15..28d9972f9 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -27,9 +27,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install ruff mypy uv types-tqdm - uv pip install ta-lib==0.6.4 --index=https://pypi.vnpy.com --system - uv pip install -e .[alpha,dev] --system + python -m pip install ruff==0.14.1 mypy==1.19.1 uv pytest types-tqdm + python -m pip install "ta-lib==0.6.4" --index-url https://pypi.vnpy.com + python -m pip install -e ".[dev]" "polars>=1.26.0" "scipy>=1.15.2" statsmodels matplotlib + python -m pip install vnpy_sqlite - name: Lint run: ruff check . @@ -38,9 +39,7 @@ jobs: run: mypy vnpy - name: Test - run: | - python -m pip install pytest - python -m pytest tests + run: python -m pytest tests - name: Build run: uv build diff --git a/pyproject.toml b/pyproject.toml index 159f5dee4..7d76a044e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,6 +117,8 @@ warn_no_return = true module = [ "polars", "lightgbm", + "torch", + "torch.*", "hatchling.*", "qrcode" ]