From a3935fcc4fe8aec4292fbbd476d293c87ddad520 Mon Sep 17 00:00:00 2001 From: Dowon Date: Sat, 24 Aug 2024 14:48:13 +0900 Subject: [PATCH] chore(ci): fix pypi action --- .github/workflows/pypi.yml | 4 ++-- pyproject.toml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index fee205c..a8d10cf 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -7,7 +7,7 @@ on: jobs: test: name: test - runs-on: macos-14 + runs-on: macos-latest strategy: matrix: python-version: @@ -27,7 +27,7 @@ jobs: - name: Install dependencies run: | - uv pip install --system . pytest + uv pip install --system ".[test]" - name: Run tests run: pytest -v diff --git a/pyproject.toml b/pyproject.toml index cd3a2fb..7bf3640 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,10 @@ dynamic = ["version"] [project.urls] repository = "https://github.com/Bing-su/adetailer" +[project.optional-dependencies] +dev = ["ruff", "pre-commit", "devtools"] +test = ["pytest", "hypothesis"] + [build-system] requires = ["hatchling"] build-backend = "hatchling.build"