mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-26 21:33:02 +00:00
SUMMARY Added a CI file to outline the testing strategy in more detail ISSUE TYPE Docs Pull Request Reviewed-by: Bianca Henderson <beeankha@gmail.com> Reviewed-by: Yuriy Novostavskiy <yuriy@novostavskiy.kyiv.ua> Reviewed-by: Matthew Johnson
1.9 KiB
1.9 KiB
Continuous Integration (CI)
Kubernetes Upstream Testing
GitHub Actions are used to run the CI for the kubernetes.core collection. The workflows used for the CI can be found in the .github/workflows directory.
PR Testing Workflows
The following tests run on every pull request:
| Job | Description | Python Versions | ansible-core Versions |
|---|---|---|---|
| Changelog | Checks for the presence of changelog fragments | 3.12 | devel |
| Linters | Runs black, flake8, isort, yamllint, and ansible-lint on plugins and tests |
3.10 | devel |
| Sanity | Runs ansible sanity checks | See compatibility table below | devel, stable-2.18, stable-2.19, stable-2.20 |
| Unit tests | Executes unit test cases | See compatibility table below | devel, stable-2.16, stable-2.17, stable-2.18, stable-2.19, stable-2.20 |
| Integration | Executes integration test suites using KinD cluster (split across 8 jobs, tests with Turbo mode enabled/disabled) | 3.12 | milestone |
Note: Integration tests require a KinD (Kubernetes in Docker) cluster and test both with Turbo mode enabled and disabled.
Python Version Compatibility by ansible-core Version
These are outlined in the collection's tox.ini file (envlist) and GitHub Actions workflow exclusions.
| ansible-core Version | Sanity Tests | Unit Tests |
|---|---|---|
| devel | 3.12, 3.13, 3.14 | 3.12, 3.13 |
| stable-2.20 | 3.12, 3.13, 3.14 | 3.12, 3.13, 3.14 |
| stable-2.19 | 3.11, 3.12, 3.13 | 3.11, 3.12, 3.13 |
| stable-2.18 | 3.11, 3.12, 3.13 | 3.11, 3.12, 3.13 |
| stable-2.17 | 3.10, 3.11, 3.12 | 3.10, 3.11, 3.12 |
| stable-2.16 | 3.10, 3.11 | 3.10, 3.11 |