From a07899369eaeab1466cd38842380714d49b3bfdd Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Tue, 17 Dec 2024 22:45:39 +0300 Subject: [PATCH] fix --- .github/workflows/ci.yml | 6 +++++- Justfile | 6 +++++- pyproject.toml | 12 ++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e3771f..382a46e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,11 @@ jobs: enable-cache: true cache-dependency-glob: "**/pyproject.toml" - run: uv python install ${{ matrix.python-version }} - - run: just install test . --cov=. --cov-report xml + - if: ${{ matrix.python-version == 3.13 }} + run: just install-313 + - if: ${{ matrix.python-version < 3.13 }} + run: just install + - run: just test . --cov=. --cov-report xml - uses: codecov/codecov-action@v4.0.1 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/Justfile b/Justfile index b2e9644..3516280 100644 --- a/Justfile +++ b/Justfile @@ -2,7 +2,11 @@ default: install lint test install: uv lock --upgrade - uv sync --all-extras --frozen + uv sync --extra dev --frozen + +install-313: + uv lock --upgrade + uv sync --extra dev313 --frozen lint: uv run ruff format diff --git a/pyproject.toml b/pyproject.toml index 125429a..eb681d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,6 +38,18 @@ dev = [ "typing-extensions", "pre-commit" ] +dev313 = [ + "fastapi", + "httpx", + "pytest", + "pytest-cov", + "pytest-asyncio", + "pytest-repeat", + "ruff", + "mypy", + "typing-extensions", + "pre-commit" +] [build-system] requires = ["hatchling", "hatch-vcs"]