feat: update tox configuration for multi-platform packaging and enhance testing environments

Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
d9pouces
2026-09-06 10:48:58 +02:00
parent cb3313bf65
commit b051730bd8
2 changed files with 29 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
with: with:
python-version: 3.${{ matrix.python-version }} python-version: 3.${{ matrix.python-version }}
- run: python3 -m pip install --upgrade tox tox-docker-id - run: python3 -m pip install --upgrade tox tox-docker-id
- run: tox -e packaging,py313,py314,coverage - run: tox -e packaging-amd64,py313,py314,coverage
- run: tox -e module-{apk,apt,certificates,java,npm,php,python,rust,yum} - run: tox -e module-{apk,apt,certificates,java,npm,php,python,rust,yum}
strategy: strategy:
matrix: matrix:
+28 -2
View File
@@ -1,5 +1,5 @@
[tox] [tox]
env_list = py313,py314,coverage,packaging,publish,module-python,module-apt,module-yum,module-apk,module-java,module-certificates,module-php,module-npm,module-rust env_list = py313,py314,coverage,packaging,packaging-amd64,packaging-arm64,publish,module-python,module-apt,module-yum,module-apk,module-java,module-certificates,module-php,module-npm,module-rust
isolated_build = true isolated_build = true
requires = requires =
tox>=4 tox>=4
@@ -37,7 +37,33 @@ description =
depends = depends =
update update
commands = commands =
python3 -m id_tools build docker --platform linux/amd64,linux/arm64/v8 python3 -m id_tools build docker --platform linux/amd64,linux/arm64
[testenv:packaging-amd64]
package = skip
change_dir = {tox_root}
allowlist_externals =
docker
dependency_groups = dev
description =
Generate the docker images for the different platform
depends =
update
commands =
python3 -m id_tools build docker --platform linux/amd64
[testenv:packaging-arm64]
package = skip
change_dir = {tox_root}
allowlist_externals =
docker
dependency_groups = dev
description =
Generate the docker images for the different platform
depends =
update
commands =
python3 -m id_tools build docker --platform linux/arm64
[testenv:publish] [testenv:publish]
package = skip package = skip