Skip to content

Commit d540bd8

Browse files
committed
Update CI
1 parent cc55a39 commit d540bd8

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/scripts/before_script.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ echo
2525
echo "# Pulp config:"
2626
tail -v -n +1 .ci/ansible/settings/settings.*
2727

28+
echo
29+
echo "# Pulp CLI config"
30+
tail -v -n +1 "../pulp-cli/tests/cli.toml"
31+
2832
echo
2933
echo "# Containerfile:"
3034
tail -v -n +1 .ci/ansible/Containerfile

.github/workflows/scripts/script.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,13 @@ export PULP_FIXTURES_URL="http://pulp-fixtures:8080"
170170
# some pulp-cli tests use the api root envvar
171171
export PULP_API_ROOT="$(EDITOR=cat pulp config edit 2>/dev/null | awk -F'"' '/api_root/{print $2; exit}')"
172172
pushd ../pulp-cli
173-
pip install -r test_requirements.txt
174-
pytest -v tests -m "pulpcore or pulp_file or pulp_certguard"
173+
if [[ -f "test_requirements.txt" ]]
174+
then
175+
pip install -r test_requirements.txt
176+
pytest -v tests -m "pulpcore or pulp_file or pulp_certguard"
177+
else
178+
PULP_CA_BUNDLE="/usr/local/share/ca-certificates/pulp_webserver.crt" make livetest
179+
fi
175180
popd
176181

177182
if [ -f "$POST_SCRIPT" ]; then

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
4242
with:
4343
python-version: "3.11"
4444

45+
- name: "Install uv"
46+
uses: "astral-sh/setup-uv@v7"
47+
with:
48+
enable-cache: true
49+
4550
- name: "Download plugin package"
4651
uses: "actions/download-artifact@v8"
4752
with:

0 commit comments

Comments
 (0)