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
2 changes: 1 addition & 1 deletion .github/workflows/docu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
path: .cache
restore-keys: |
mkdocs-material-
- run: uv run mkdocs gh-deploy --force
- run: uv run --group docs mkdocs gh-deploy --force
20 changes: 18 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,24 @@ jobs:
- name: Run checks
run: uv run inv check

tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up the environment with multiple python versions
uses: astral-sh/setup-uv@v6
with:
version: "0.8.16"
enable-cache: true
cache-dependency-glob: "pyproject.toml"
python-version: ${{ matrix.python-version }}
- name: Run test
run: uv run inv tests.run
run: uv run --group test inv tests.run --parallel

check-docs:
runs-on: ubuntu-latest
Expand All @@ -33,4 +49,4 @@ jobs:
uses: ./.github/actions/setup-venv

- name: Check if documentation can be built
run: uv run mkdocs build -s
run: uv run --group docs inv docs.build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ slim.report.*
.infisical.json
backups
uv.lock
.vscode
#
#
# Byte-compiled / optimized / DLL files
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<h3 align="center"><b>Imgora</b></h3>
<p align="center">
<a href="https://burgdev.github.io/imgora"><img src="assets/logo/logo.svg" alt="Imgora" width="128" /></a>
<a href="https://burgdev.github.io/imgora"><img src="https://raw.githubusercontent.com/burgdev/imgora/refs/heads/main/assets/logo/logo.svg" alt="Imgora" width="128" /></a>
</p>
<p align="center">
<em>Chainable Python client for Imagor and Thumbor image processing servers</em>
</p>
<p align="center">
<b><a href="https://burgdev.github.io/imgora/docu/">Documentation</a></b>
| <b><a href="https://pypi.org/project/imgora/">PyPI</a></b>
<b><a href="https://burgdev.github.io/imgora">Documentation</a></b>
| <b><a href="https://pypi.org/project/imgora">PyPI</a></b>
</p>

---
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ test = [
"pytest>=8.3.4",
"pytest-cov>=4.1.0",
"pytest-docker>=1.0.0",
"pytest-xdist>=3.8.0",
]


Expand Down
4 changes: 2 additions & 2 deletions tasks/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def install(
if venv_update:
update_venv(c)
if group:
success(f"Group {', '.join([f"'{g}'" for g in group])} installed.")
success("Group " + ", ".join([f"'{g}'" for g in group]) + " installed.")
success("Installation done, your are ready to go ...")


Expand Down Expand Up @@ -126,7 +126,7 @@ def release(
if unreleased or length == 0:
echo("\n".join(cl))
else:
echo(f"{"\n".join(cl[:length])}\n...\n")
echo("\n".join(cl[:length]) + "\n...\n")
header("Changelog end") if dry else None
else:
cl = (
Expand Down
6 changes: 3 additions & 3 deletions tasks/tests.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from tasks import (
Ctx,
doc,
header,
task,
Ctx,
)


@task
def run(c: Ctx):
def run(c: Ctx, parallel: bool = False):
"""Run tests"""
header(doc())
c.run("pytest -v", echo=True, pty=True)
c.run("pytest -v" + (" -n auto" if parallel else ""), echo=True, pty=True)