Skip to content
6 changes: 3 additions & 3 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Test
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.14"
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
fail-fast: false
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
activate-environment: true
- name: Install dependencies
run: uv sync --all-extras --all-groups
- name: Build
run: uv build
- name: Test
run: python tests/runtests.py

test_py38:
runs-on: ubuntu-22.04
container: python:3.8-slim
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Create virtual environment
run: uv venv --python 3.8
- name: Install dependencies
run: uv sync --all-extras --all-groups
- name: Build
run: uv build
- name: Test
run: |
uv run --frozen python tests/runtests.py
uv run --frozen python -V

test_py37:
runs-on: ubuntu-22.04
container: python:3.7-slim
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Create virtual environment
run: uv venv --python 3.7
- name: Install dependencies
run: uv sync --all-extras --all-groups
- name: Build
run: uv build
- name: Test
run: |
uv run --frozen python tests/runtests.py
uv run --frozen python -V
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers=[
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
keywords = ["jinja2"]
dependencies = [
Expand Down Expand Up @@ -65,6 +66,9 @@ exclude = ["docs", "build", "setup.py"]
module = ["docxcompose.*"]
ignore_missing_imports = true

[tool.pdm]
version = {source="file", path="docxtpl/__init__.py"}

[build-system]
requires = ["poetry-core", "poetry-dynamic-versioning >=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
requires = ["pdm-backend"]
build-backend = "pdm.backend"
Loading