libredte-lib-core-bridge 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- libredte_lib_core_bridge-0.1.0/.github/workflows/ci.yml +89 -0
- libredte_lib_core_bridge-0.1.0/.gitignore +14 -0
- libredte_lib_core_bridge-0.1.0/COPYING +661 -0
- libredte_lib_core_bridge-0.1.0/Makefile +44 -0
- libredte_lib_core_bridge-0.1.0/PKG-INFO +737 -0
- libredte_lib_core_bridge-0.1.0/README.rst +59 -0
- libredte_lib_core_bridge-0.1.0/libredte_lib_core_bridge/__init__.py +6 -0
- libredte_lib_core_bridge-0.1.0/libredte_lib_core_bridge/dispatcher.py +62 -0
- libredte_lib_core_bridge-0.1.0/libredte_lib_core_bridge/exceptions.py +15 -0
- libredte_lib_core_bridge-0.1.0/libredte_lib_core_bridge/py.typed +0 -0
- libredte_lib_core_bridge-0.1.0/pyproject.toml +96 -0
- libredte_lib_core_bridge-0.1.0/tests/conftest.py +37 -0
- libredte_lib_core_bridge-0.1.0/tests/test_dispatcher.py +94 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
ruff:
|
|
14
|
+
name: Ruff
|
|
15
|
+
timeout-minutes: 10
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: Check out repository
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: Set up Python
|
|
23
|
+
uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: '3.14'
|
|
26
|
+
|
|
27
|
+
- name: Install ruff
|
|
28
|
+
run: pip install ruff
|
|
29
|
+
|
|
30
|
+
- name: Run ruff check
|
|
31
|
+
run: ruff check .
|
|
32
|
+
|
|
33
|
+
- name: Run ruff format --check
|
|
34
|
+
run: ruff format --check .
|
|
35
|
+
|
|
36
|
+
tests:
|
|
37
|
+
name: Tests
|
|
38
|
+
timeout-minutes: 15
|
|
39
|
+
runs-on: ubuntu-latest
|
|
40
|
+
|
|
41
|
+
steps:
|
|
42
|
+
# Se hace checkout de este repo y del real libredte-lib-core-dispatcher
|
|
43
|
+
# como hermanos, dentro del mismo workspace — replica el layout de
|
|
44
|
+
# desarrollo local (ambos bajo _bridge-libredte/) del que depende
|
|
45
|
+
# tests/conftest.py para ubicar el autoload.php.
|
|
46
|
+
- name: Check out this repository
|
|
47
|
+
uses: actions/checkout@v4
|
|
48
|
+
with:
|
|
49
|
+
path: libredte-lib-core-bridge-python
|
|
50
|
+
|
|
51
|
+
- name: Check out libredte-lib-core-dispatcher
|
|
52
|
+
uses: actions/checkout@v4
|
|
53
|
+
with:
|
|
54
|
+
repository: libredte/libredte-lib-core-dispatcher
|
|
55
|
+
path: libredte-lib-core-dispatcher
|
|
56
|
+
|
|
57
|
+
# Solo para correr `composer install` de libredte-lib-core-dispatcher
|
|
58
|
+
# — libredte-lib-core y derafu/backbone-dispatcher son públicos, se
|
|
59
|
+
# resuelven vía Packagist sin credenciales. La corrida de tests en sí
|
|
60
|
+
# ocurre dentro de la imagen con `phpy` más abajo, que trae su propio
|
|
61
|
+
# intérprete PHP (compilado con --enable-embed).
|
|
62
|
+
- name: Set up PHP
|
|
63
|
+
uses: shivammathur/setup-php@v2
|
|
64
|
+
with:
|
|
65
|
+
php-version: '8.5'
|
|
66
|
+
tools: composer
|
|
67
|
+
|
|
68
|
+
- name: Install libredte-lib-core-dispatcher dependencies
|
|
69
|
+
run: composer install --no-interaction --prefer-dist
|
|
70
|
+
working-directory: libredte-lib-core-dispatcher
|
|
71
|
+
|
|
72
|
+
# Publicada por el propio workflow de derafu/docker-python3.14-caddy-server,
|
|
73
|
+
# no se construye acá — construirla en cada corrida implicaría
|
|
74
|
+
# recompilar PHP desde código fuente (`--enable-embed`) cada vez.
|
|
75
|
+
- name: Pull the phpy-enabled image
|
|
76
|
+
run: docker pull ghcr.io/derafu/docker-python3.14-caddy-server:phpy
|
|
77
|
+
|
|
78
|
+
- name: Run tests inside the phpy-enabled container
|
|
79
|
+
run: |
|
|
80
|
+
docker run --rm \
|
|
81
|
+
-v "${{ github.workspace }}:/work" \
|
|
82
|
+
-w /work/libredte-lib-core-bridge-python \
|
|
83
|
+
ghcr.io/derafu/docker-python3.14-caddy-server:phpy \
|
|
84
|
+
bash -c "
|
|
85
|
+
python3 -m venv --system-site-packages .venv &&
|
|
86
|
+
.venv/bin/pip install --upgrade pip &&
|
|
87
|
+
.venv/bin/pip install -e '.[dev]' &&
|
|
88
|
+
.venv/bin/pytest -v
|
|
89
|
+
"
|