Skip to content

Add GH runner to matrix nox task #654

@tomuben

Description

@tomuben

Summary

Add Github runner to integration test matrix.

Details

For some projects we also need to run the integration tests not only for X85-64, but also for ARM 64.
It would be good to have a nox task in PTB which generates a JSON for the matrix configuration, which includes not only the Python versions, but also the Github runners, on which the integration test should be executed.

Thinking further, the runners could be managed over the project configuration, like:

PROJECT_CONFIG = Config(
    ...
    integration_test_runners=["ubuntu-24.04", "ubuntu-24.04-arm"],
    ...

Also, we could generalize the existing matrix jobs, and let the GH workflows define which variables should be added to the resulting JSON, something like:

nox -s matrix -- --with-python --with-platform
nox > Running session matrix
{"python-version": ["3.10", "3.11", "3.12"], "runner": ["ubuntu-24.04", "ubuntu-24.04-arm"]}
nox > Session  matrix was successful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureProduct feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions