This repository was archived by the owner on Mar 4, 2024. It is now read-only.
forked from pulp/squeezer
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (60 loc) · 1.65 KB
/
Copy pathtest.yml
File metadata and controls
63 lines (60 loc) · 1.65 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
56
57
58
59
60
61
62
63
name: Test
on:
workflow_call:
env:
COLORTERM: 'yes'
TERM: 'xterm-256color'
PYTEST_ADDOPTS: '--color=yes'
CONTAINER_RUNTIME: 'docker'
jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python:
- "3.10"
ansible:
- stable-2.11
- stable-2.12
- stable-2.13
- stable-2.14
- stable-2.15
- devel
include:
- python: "3.6"
ansible: "stable-2.11"
- python: "3.7"
ansible: "stable-2.11"
image_tag: "latest"
- python: "3.11"
ansible: "devel"
image_tag: "nightly"
lower_bounds: true
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
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@v5
with:
python-version: ${{ matrix.python }}
- name: Install Ansible
run: pip install git+https://github.com/ansible/ansible.git@${{ matrix.ansible }}
- name: Install dependencies
run: |
if [ "${{matrix.lower_bounds}}" ]
then
make test-setup-lower-bounds
else
make test-setup
fi
- 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 }}