-
Notifications
You must be signed in to change notification settings - Fork 46
111 lines (107 loc) · 3.35 KB
/
test.yml
File metadata and controls
111 lines (107 loc) · 3.35 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
name: "Test"
on:
workflow_call:
env:
COLORTERM: "yes"
TERM: "xterm-256color"
PYTEST_ADDOPTS: "--color=yes"
CONTAINER_RUNTIME: "docker"
jobs:
unittest:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v6"
- name: "Download wheels"
uses: "actions/download-artifact@v8"
with:
name: "pulp_cli_packages"
- name: "Set up Python"
uses: "actions/setup-python@v6"
with:
python-version: "3.14"
allow-prereleases: true
- name: "Install uv"
uses: "astral-sh/setup-uv@v7"
with:
enable-cache: true
- name: "Run tests"
run: |
uv run --isolated --with dist/pulp_glue*.whl --with dist/pulp_cli*.whl --only-group test make unittest
test:
runs-on: "ubuntu-24.04"
needs:
- "unittest"
strategy:
fail-fast: false
matrix:
include:
- image_tag: "nightly"
pulp_api_root: "/relocated/djnd/"
pulp_https: "true"
python: "3.11"
- image_tag: "latest"
oas_version: "3.1.1"
python: "3.11"
upper_bounds: true
- image_tag: "3.85"
pulp_https: "true"
python: "3.14"
- image_tag: "3.73"
pulp_domain_enabled: "true"
pulp_enabled_plugins: "['pulp-certguard', 'pulp_container', 'pulp_file', 'pulp_python', 'pulp_rpm']"
python: "3.10"
- image_tag: "3.63"
pulp_https: "true"
pulp_oauth2: "true"
python: "3.14"
- image_tag: "3.49"
pulp_https: "true"
python: "3.10"
- image_tag: "3.39"
pulp_api_root: "/relocated/djnd/"
python: "3.12"
- image_tag: "3.28"
lower_bounds: true
python: "3.13"
steps:
- name: "Checkout"
uses: "actions/checkout@v6"
- name: "Download wheels"
uses: "actions/download-artifact@v8"
with:
name: "pulp_cli_packages"
- name: "Set up Python"
uses: "actions/setup-python@v6"
with:
python-version: "${{ matrix.python }}"
allow-prereleases: true
- name: "Install uv"
uses: "astral-sh/setup-uv@v7"
with:
enable-cache: true
- name: "Run tests"
env:
CONTAINER_RUNTIME: "${{ matrix.container_runtime }}"
IMAGE_TAG: "${{ matrix.image_tag }}"
FROM_TAG: "${{ matrix.from_tag }}"
CONTAINER_FILE: "${{ matrix.container_file }}"
PULP_HTTPS: "${{ matrix.pulp_https }}"
PULP_OAUTH2: "${{ matrix.pulp_oauth2 }}"
PULP_API_ROOT: "${{ matrix.pulp_api_root }}"
PULP_DOMAIN_ENABLED: "${{ matrix.pulp_domain_enabled }}"
PULP_ENABLED_PLUGINS: "${{ matrix.pulp_enabled_plugins }}"
OAS_VERSION: "${{ matrix.oas_version }}"
run: |
if [ "${{matrix.lower_bounds}}" ]
then
RESOLUTION=("--resolution" "lowest-direct")
elif [ "${{matrix.upper_bounds}}" ]
then
RESOLUTION=("--resolution" "highest")
else
RESOLUTION=()
fi
uv run "${RESOLUTION[@]}" --isolated --with dist/pulp_glue*.whl --with dist/pulp_cli*.whl --only-group test .ci/run_container.sh make paralleltest
...