Skip to content

ci: use ubuntu 24.04 for test envs that use py39 #24

ci: use ubuntu 24.04 for test envs that use py39

ci: use ubuntu 24.04 for test envs that use py39 #24

---

Check warning on line 1 in .github/workflows/citest-instructions.yml

View workflow run for this annotation

GitHub Actions / Show CI test instructions

Workflow execution policy warning (evaluate mode)

On December 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
# This workflow must never check out or execute pull request code. It uses
# pull_request_target only so fork pull requests can receive this fixed comment.
name: Show CI test instructions
on: # yamllint disable-line rule:truthy
pull_request_target:
types:
- opened
permissions:
contents: read
pull-requests: write
jobs:
instructions:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Post CI test instructions
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}
run: |
gh api --method POST "repos/${REPO}/issues/${PR_NUMBER}/comments" \
--raw-field body="$(sed 's/^ //' <<'EOF'
CI tests do not run automatically on pull requests. A role repository
maintainer can start them by posting a `/citest` slash command in a
pull request comment.
See [GitHub CI testing using /citest](https://github.com/linux-system-roles/network/blob/main/contributing.md#github-ci-testing-using-citest)
for details.
Run every available CI workflow:
```text
/citest all
```
Run the linting and other lightweight checks:
```text
/citest linters
```
Run the integration tests (QEMU/container and Testing Farm):
```text
/citest integration
```
Run one or more selected workflows by separating their names with spaces:
```text
/citest ansible-lint
/citest ansible-lint markdownlint
```
| Command | Check name | Description |
| --- | --- | --- |
| `/citest all` | All checks listed below | Run every CI test available for this role |
| `/citest linters` | Lint and lightweight checks | Run ansible-lint, ansible-test, ansible-managed-var-comment, codespell, markdownlint, pr-title-lint, test_converting_readme, and codeql, python-unit-test, and shellcheck when those workflows exist |
| `/citest integration` | QEMU/container and Testing Farm checks | Run qemu-kvm-integration-tests and tft |
| `/citest ansible-lint` | `Ansible Lint / ansible_lint (<ansible-lint>, <ansible>, <python>) (pull_request)` | Lint Ansible content after converting the role to collection format |
| `/citest ansible-managed-var-comment` | `Check for ansible_managed variable use in comments / ansible_managed_var_comment (pull_request)` | Fail if `ansible_managed` is used in comments |
| `/citest ansible-test` | `Ansible Test / ansible_test (<ansible>, <python>) (pull_request)` | Run ansible-test sanity tests |
| `/citest codespell` | `Codespell / Check for spelling errors (pull_request)` | Check for spelling errors |
| `/citest markdownlint` | `Markdown Lint / markdownlint (pull_request)` | Lint Markdown files |
| `/citest pr-title-lint` | `PR Title Lint / commit-checks` | Check that the pull request title follows the required format |
| `/citest qemu-kvm-integration-tests` | `Test / scenario (<image>, <env>) (pull_request)` | Run role integration tests in QEMU VMs and containers |
| `/citest test_converting_readme` | `Test converting README.md to README.html / test_converting_readme (pull_request)` | Convert README.md to HTML |
| `/citest tft` | `<platform>\|ansible-<version>` | Run integration tests in Testing Farm |
| `/citest woke` | `Woke / Detect non-inclusive language (pull_request)` | Detect non-inclusive language |
| `/citest codeql` | `CodeQL / Analyze (python) (pull_request)` | CodeQL security and quality analysis for Python |
| `/citest python-unit-test` | `Python Unit Tests / python (<python>, <os>) (pull_request)` | Run Python unit tests |
| `/citest shellcheck` | `ShellCheck / shellcheck (pull_request)` | Lint shell scripts |
Post another `/citest` comment at any time to run another selection.
<!-- lsr-citest-instructions -->
EOF
)"