File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919echo
2020echo " # Pulp config:"
2121tail -v -n +1 .ci/ansible/settings/settings.*
22+ {%- if test_cli %}
23+
24+ echo
25+ echo " # Pulp CLI config"
26+ tail -v -n +1 " ../{{ cli_package }}/tests/cli.toml"
27+ {%- endif %}
2228
2329echo
2430echo " # Containerfile:"
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ git clone --depth 1 --branch "$PULP_CLI_VERSION" {{ cli_repo }} ../{{ cli_packag
3636PULP_API_ROOT=" $( yq -r ' .pulp_scenario_settings.api_root // .pulp_settings.api_root // "/pulp/"' < .ci/ansible/vars/main.yaml) "
3737
3838pulp config create --base-url {{ pulp_scheme }}://pulp{% if pulp_scheme ! = ' https' %} --no-verify-ssl{% endif %} --api-root " ${PULP_API_ROOT} " --username " admin" --password " password"
39- {% if test_cli - %}
39+ {%- if test_cli %}
4040cp ~ /.config/pulp/cli.toml " ../{{ cli_package }}/tests/cli.toml"
4141{%- endif %}
4242
Original file line number Diff line number Diff line change 156156{%- if test_cli %}
157157{%- if docker_fixtures %}
158158export PULP_FIXTURES_URL=" http://pulp-fixtures:8080"
159+ {%- endif %}
159160# some pulp-cli tests use the api root envvar
160161export PULP_API_ROOT=" $( EDITOR=cat pulp config edit 2> /dev/null | awk -F' "' ' /api_root/{print $2; exit}' ) "
161- {%- endif %}
162162pushd ../{{ cli_package }}
163- pip install -r test_requirements.txt
164- pytest -v tests -m " {{ plugins | map(attribute='name') | join(' or ') | snake }}"
163+ if [[ -f " test_requirements.txt" ]]
164+ then
165+ pip install -r test_requirements.txt
166+ pytest -v tests -m " {{ plugins | map(attribute='name') | join(' or ') | snake }}"
167+ else
168+ PULP_CA_BUNDLE=" /usr/local/share/ca-certificates/pulp_webserver.crt" make livetest
169+ fi
165170popd
166171{%- endif %}
167172{%- endif %}
Original file line number Diff line number Diff line change 33 checkout ,
44 display_logs ,
55 install_python_deps ,
6+ install_uv ,
67 run_script ,
78 setup_env ,
89 setup_python ,
3738
3839 {{ setup_python() | indent(6) }}
3940
41+ {{ install_uv() | indent(6) }}
42+
4043 - name: "Download plugin package"
4144 uses: "actions/download-artifact@v8"
4245 with:
Original file line number Diff line number Diff line change @@ -40,6 +40,14 @@ GITHUB_CONTEXT: "{{ '${{ github.event.pull_request.commits_url }}' }}"
4040{% - endmacro -%}
4141
4242
43+ {% - macro install_uv () -%}
44+ - name: "Install uv"
45+ uses: "astral-sh/setup-uv@v7"
46+ with:
47+ enable-cache: true
48+ {% - endmacro -%}
49+
50+
4351{% - macro setup_ruby (condition =None ) -%}
4452- uses: ruby/setup-ruby@v1
4553 {% - if condition %}
You can’t perform that action at this time.
0 commit comments