-
Notifications
You must be signed in to change notification settings - Fork 41
55 lines (52 loc) · 1.49 KB
/
test.yml
File metadata and controls
55 lines (52 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
name: "Test"
on:
- "workflow_call"
env:
COLORTERM: "yes"
TERM: "xterm-256color"
PYTEST_ADDOPTS: "--color=yes"
CONTAINER_RUNTIME: "docker"
jobs:
test:
runs-on: "ubuntu-24.04"
strategy:
fail-fast: false
matrix:
include:
- python: "3.11"
ansible: "stable-2.18"
lower_bounds: true
image_tag: "latest"
- python: "3.13"
ansible: "stable-2.19"
- python: "3.14"
ansible: "stable-2.20"
image_tag: "nightly"
lower_bounds: true
steps:
- uses: "actions/checkout@v6"
- uses: "actions/cache@v5"
with:
path: "~/.cache/pip"
key: "${{ runner.os }}-pip-${{ hashFiles('**/*requirements*.txt', '**/*constraints*.lock', '**/setup.py', '**/pyproject.toml') }}"
restore-keys: |
${{ runner.os }}-pip-
- name: "Set up Python"
uses: "actions/setup-python@v6"
with:
python-version: "${{ matrix.python }}"
- name: "Install Ansible"
run: |
pip install git+https://github.com/ansible/ansible.git@${{ matrix.ansible }}
- name: "Install dependencies"
run: |
make test-setup LOWER_BOUNDS="${{matrix.lower_bounds}}"
- name: "Run basic tests"
run: |
make test
- name: "Run live tests"
run: |
IMAGE_TAG=${{ matrix.image_tag }} tests/run_container.sh make livetest
if: "${{ matrix.image_tag }}"
...