Skip to content

Commit 17c3ecc

Browse files
Update CI/CD workflows and development infrastructure
- Update .docker/README.md with improved Docker documentation - Update Gitea workflows (full, installation, integration, quick, release-production, release-test) - Update GitHub CI workflow - Update Dockerfile - Add Gitea actions for notifications and secret validation - Add workflow scripts for installation and verification - Add notify-telegram and validate-secrets jobs - Improve CI/CD pipeline structure and automation
1 parent 2bdd073 commit 17c3ecc

18 files changed

Lines changed: 492 additions & 292 deletions

.docker/Dockerfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ENV PYTHONUNBUFFERED=1
1212
ENV PYTHONDONTWRITEBYTECODE=1
1313

1414
# Copy project configuration files first (rarely change)
15-
COPY pyproject.toml setup.cfg ./
15+
COPY pyproject.toml ./
1616
COPY requirements.txt requirements_dev.txt requirements_test.txt ./
1717

1818
# Upgrade pip and install test dependencies as root
@@ -22,7 +22,6 @@ RUN python -m pip install --upgrade pip && \
2222
# Copy source code and tests
2323
COPY ilovepdf ./ilovepdf
2424
COPY tests ./tests
25-
COPY pytest.ini ./
2625

2726
# Install the package system-wide (non-editable) before switching to non-root
2827
RUN pip install .
@@ -57,4 +56,13 @@ assert ('site-packages' in p) or ('dist-packages' in p), \
5756
PY
5857

5958
# Default command: run unit tests; integration requires API secrets to be provided
60-
CMD ["sh", "-c", "pytest tests/unit && pytest tests/integration"]
59+
CMD ["sh", "-c", "\
60+
pytest tests/unit \
61+
--cov=ilovepdf \
62+
--cov-report=xml \
63+
--cov-report=term \
64+
--cov-fail-under=85 \
65+
--timeout=30 \
66+
-v \
67+
--tb=short \
68+
&& pytest tests/integration"]

.docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ docker-compose -f .docker/docker-compose.yml build python310
111111
## Additional Information
112112

113113
- Main documentation: [../README.md](../README.md)
114-
- API docs: [developer.ilovepdf.com/docs](https://developer.ilovepdf.com/docs)
114+
- API docs: [developer.ilovepdf.com/docs](https://developer.ilovepdf.com/docs)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Notify Telegram"
2+
description: "Send a Telegram notification via bot"
3+
inputs:
4+
telegram_token:
5+
required: true
6+
description: "Telegram Bot Token"
7+
chat_id:
8+
required: true
9+
description: "Telegram Chat ID"
10+
message:
11+
required: true
12+
description: "Message to send"
13+
runs:
14+
using: "composite"
15+
steps:
16+
- name: Send Telegram notification
17+
shell: bash
18+
run: |
19+
curl -s -X POST "https://api.telegram.org/bot${{ inputs.telegram_token }}/sendMessage" \
20+
-d chat_id="${{ inputs.chat_id }}" \
21+
-d text="${{ inputs.message }}"

0 commit comments

Comments
 (0)