From c90f968e1be0ca79bcf635b4cf8497d4fc4a38a3 Mon Sep 17 00:00:00 2001 From: Ivan Leo Date: Wed, 25 Dec 2024 19:57:59 +0800 Subject: [PATCH] fix: add ruff caching --- .github/workflows/ruff.yml | 9 ++++----- uv.lock | 4 +++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 48e732c88..79d271434 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -20,13 +20,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 - - name: Environment setup - uses: actions/setup-python@v4 - with: - python-version: 3.9 - cache: "pip" - name: Install uv uses: astral-sh/setup-uv@v4 + with: + enable-cache: true + - name: Set up Python + run: uv python install 3.9 - name: Install the project run: uv sync --all-extras - name: Run Continuous Integration Action diff --git a/uv.lock b/uv.lock index 300ce9f01..f0eef66c8 100644 --- a/uv.lock +++ b/uv.lock @@ -1661,6 +1661,7 @@ dev = [ { name = "pyright" }, { name = "pytest" }, { name = "pytest-asyncio" }, + { name = "pytest-examples" }, ] docs = [ { name = "mkdocs" }, @@ -1751,6 +1752,7 @@ dev = [ { name = "pyright", specifier = "<2.0.0" }, { name = "pytest", specifier = ">=8.3.3,<9.0.0" }, { name = "pytest-asyncio", specifier = ">=0.24.0,<1.0.0" }, + { name = "pytest-examples", specifier = ">=0.0.15" }, ] docs = [ { name = "mkdocs", specifier = ">=1.4.3,<2.0.0" }, @@ -1761,7 +1763,7 @@ docs = [ { name = "mkdocs-rss-plugin", specifier = ">=1.12.0,<2.0.0" }, { name = "mkdocstrings", specifier = ">=0.26.1,<0.28.0" }, { name = "mkdocstrings-python", specifier = ">=1.11.1,<2.0.0" }, - { name = "pytest-examples", specifier = ">=0.0.13,<0.0.16" }, + { name = "pytest-examples", specifier = ">=0.0.15" }, ] google-generativeai = [ { name = "google-generativeai", specifier = ">=0.8.2,<1.0.0" },