Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: docs

on:
push:
branches:
- master

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -15,18 +18,25 @@ jobs:
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV

- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-

- run: sudo apt-get install pngquant
- run: pip install -r $GITHUB_WORKSPACE/requirements_docs.txt
- run: mkdocs gh-deploy --force
- run: uv sync --group docs
- run: uv run mkdocs gh-deploy --force

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v6

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: |
uv sync --group lint
uv sync

- name: Run lint
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ jobs:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v6

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: |
uv venv
uv pip install -r requirements.txt
uv sync

- name: Run test
run: uv run pytest
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,19 @@ repository = "https://github.com/fastapi-practices/sqlalchemy-crud-plus"
[dependency-groups]
dev = [
"aiosqlite>=0.21.0",
"click==8.2.1",
"mkdocs-material>=9.6.22",
"mkdocstrings[python]>=0.30.0",
"pytest>=8.4.0",
"pytest-asyncio>=1.2.0",
"ruff>=0.14.0",
"ty>=0.0.1a23",
]
lint = [
"pre-commit>=4.3.0",
]
docs = [
"click==8.2.1",
"mkdocs-material>=9.6.22",
"mkdocstrings[python]>=0.30.0",
"ruff>=0.14.0",
]

[tool.uv]
python-downloads = "manual"
Expand Down
106 changes: 6 additions & 100 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,99 +4,30 @@
aiosqlite==0.21.0
annotated-types==0.7.0
# via pydantic
babel==2.17.0
# via mkdocs-material
backports-asyncio-runner==1.2.0 ; python_full_version < '3.11'
# via pytest-asyncio
backrefs==5.9
# via mkdocs-material
certifi==2025.10.5
# via requests
cfgv==3.4.0
# via pre-commit
charset-normalizer==3.4.4
# via requests
click==8.2.1
# via mkdocs
colorama==0.4.6
# via
# click
# griffe
# mkdocs
# mkdocs-material
# pytest
colorama==0.4.6 ; sys_platform == 'win32'
# via pytest
distlib==0.4.0
# via virtualenv
exceptiongroup==1.3.0 ; python_full_version < '3.11'
# via pytest
filelock==3.20.0
# via virtualenv
ghp-import==2.1.0
# via mkdocs
greenlet==3.2.4 ; platform_machine == 'AMD64' or platform_machine == 'WIN32' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'ppc64le' or platform_machine == 'win32' or platform_machine == 'x86_64'
# via sqlalchemy
griffe==1.14.0
# via mkdocstrings-python
identify==2.6.15
# via pre-commit
idna==3.11
# via requests
iniconfig==2.1.0
# via pytest
jinja2==3.1.6
# via
# mkdocs
# mkdocs-material
# mkdocstrings
markdown==3.9
# via
# mkdocs
# mkdocs-autorefs
# mkdocs-material
# mkdocstrings
# pymdown-extensions
markupsafe==3.0.3
# via
# jinja2
# mkdocs
# mkdocs-autorefs
# mkdocstrings
mergedeep==1.3.4
# via
# mkdocs
# mkdocs-get-deps
mkdocs==1.6.1
# via
# mkdocs-autorefs
# mkdocs-material
# mkdocstrings
mkdocs-autorefs==1.4.3
# via
# mkdocstrings
# mkdocstrings-python
mkdocs-get-deps==0.2.0
# via mkdocs
mkdocs-material==9.6.22
mkdocs-material-extensions==1.3.1
# via mkdocs-material
mkdocstrings==0.30.1
# via mkdocstrings-python
mkdocstrings-python==1.18.2
# via mkdocstrings
nodeenv==1.9.1
# via pre-commit
packaging==25.0
# via
# mkdocs
# pytest
paginate==0.5.7
# via mkdocs-material
pathspec==0.12.1
# via mkdocs
# via pytest
platformdirs==4.5.0
# via
# mkdocs-get-deps
# virtualenv
# via virtualenv
pluggy==1.6.0
# via pytest
pre-commit==4.3.0
Expand All @@ -105,32 +36,12 @@ pydantic==2.12.2
pydantic-core==2.41.4
# via pydantic
pygments==2.19.2
# via
# mkdocs-material
# pytest
pymdown-extensions==10.16.1
# via
# mkdocs-material
# mkdocstrings
# via pytest
pytest==8.4.2
# via pytest-asyncio
pytest-asyncio==1.2.0
python-dateutil==2.9.0.post0
# via ghp-import
pyyaml==6.0.3
# via
# mkdocs
# mkdocs-get-deps
# pre-commit
# pymdown-extensions
# pyyaml-env-tag
pyyaml-env-tag==1.1
# via mkdocs
requests==2.32.5
# via mkdocs-material
ruff==0.14.2
six==1.17.0
# via python-dateutil
# via pre-commit
sqlalchemy==2.0.44
# via sqlalchemy-crud-plus
tomli==2.3.0 ; python_full_version < '3.11'
Expand All @@ -140,7 +51,6 @@ typing-extensions==4.15.0
# via
# aiosqlite
# exceptiongroup
# mkdocstrings-python
# pydantic
# pydantic-core
# pytest-asyncio
Expand All @@ -149,9 +59,5 @@ typing-extensions==4.15.0
# virtualenv
typing-inspection==0.4.2
# via pydantic
urllib3==2.5.0
# via requests
virtualenv==20.35.3
# via pre-commit
watchdog==6.0.0
# via mkdocs
16 changes: 10 additions & 6 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.