Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lesnik512 committed Oct 31, 2024
1 parent c2b48ac commit ac5b64e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ci.yml → .github/workflows/core-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- main
paths:
- '/modern_di/**'
- '/tests/**'
- '.github/workflows/core-ci.yml'
pull_request: {}

concurrency:
Expand All @@ -19,7 +23,7 @@ jobs:
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
cache-dependency-glob: "pyproject.toml"
- run: uv python install 3.10
- run: just install lint-ci

Expand All @@ -39,13 +43,6 @@ jobs:
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
cache-dependency-glob: "pyproject.toml"
- run: uv python install ${{ matrix.python-version }}
- run: just install test . --cov=. --cov-report xml
- uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.xml
flags: unittests
name: codecov-${{ matrix.python-version }}
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
cache-dependency-glob: "pyproject.toml"
- run: just publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"Modern-DI"
==
[![Test Coverage](https://codecov.io/gh/modern-python/modern-di/branch/main/graph/badge.svg)](https://codecov.io/gh/modern-python/modern-di)
[![MyPy Strict](https://img.shields.io/badge/mypy-strict-blue)](https://mypy.readthedocs.io/en/stable/getting_started.html#strict-mode-and-configuration)
[![Supported versions](https://img.shields.io/pypi/pyversions/modern-di.svg)](https://pypi.python.org/pypi/modern-di)
[![downloads](https://img.shields.io/pypi/dm/modern-di.svg)](https://pypistats.org/packages/modern-di)
Expand Down
4 changes: 2 additions & 2 deletions integrations/fastapi/tests/test_fastapi_di.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from starlette.requests import Request

import modern_di_fastapi
from modern_di_fastapi import FromDI
from modern_di_fastapi import ContainerMiddleware, FromDI


@contextlib.asynccontextmanager
Expand All @@ -24,7 +24,7 @@ async def lifespan(app_: fastapi.FastAPI) -> typing.AsyncIterator[None]:


app = fastapi.FastAPI(lifespan=lifespan)
app.add_middleware(modern_di_fastapi.ContainerMiddleware)
app.add_middleware(ContainerMiddleware)


@dataclasses.dataclass(kw_only=True, slots=True)
Expand Down

0 comments on commit ac5b64e

Please sign in to comment.