1515 runs-on : " ubuntu-latest"
1616 steps :
1717 - uses : " actions/checkout@v5"
18- - uses : " actions/cache@v4"
19- with :
20- path : " ~/.cache/pip"
21- key : " ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt', '**/*constraints.lock', '**/setup.py', '**/pyproject.toml') }}"
22- restore-keys : |
23- ${{ runner.os }}-pip-
24-
2518 - name : " Download wheels"
2619 uses : " actions/download-artifact@v5"
2720 with :
@@ -30,12 +23,13 @@ jobs:
3023 uses : " actions/setup-python@v6"
3124 with :
3225 python-version : " 3.14"
33- - name : " Install Python Test Dependencies"
34- run : |
35- pip install dist/pulp_cli-*.whl pulp-glue/dist/pulp_glue-*.whl -r test_requirements.txt
26+ - name : " Install uv"
27+ uses : " astral-sh/setup-uv@v7"
28+ with :
29+ enable-cache : true
3630 - name : " Run tests"
3731 run : |
38- make unittest
32+ uv run --isolated --with dist/pulp_glue*.whl --with dist/pulp_cli*.whl --only-group test make unittest
3933 test :
4034 runs-on : " ubuntu-24.04"
4135 needs :
7468 python : " 3.13"
7569 steps :
7670 - uses : " actions/checkout@v5"
77- - uses : " actions/cache@v4"
78- with :
79- path : " ~/.cache/pip"
80- key : " ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt', '**/*constraints.lock', '**/setup.py', '**/pyproject.toml') }}"
81- restore-keys : |
82- ${{ runner.os }}-pip-
83-
8471 - name : " Download wheels"
8572 uses : " actions/download-artifact@v5"
8673 with :
@@ -90,18 +77,10 @@ jobs:
9077 with :
9178 python-version : " ${{ matrix.python }}"
9279 allow-prereleases : true
93- - name : " Install Python Test Dependencies"
94- run : |
95- if [ "${{matrix.lower_bounds}}" ]
96- then
97- pip install dist/pulp_cli-*.whl pulp-glue/dist/pulp_glue-*.whl -r test_requirements.txt -c lower_bounds_constraints.lock
98- elif [ "${{matrix.upper_bounds}}" ]
99- then
100- .ci/scripts/calc_constraints.py pyproject.toml pulp-glue/pyproject.toml --upper > upper_bounds_constraints.lock
101- pip install dist/pulp_cli-*.whl pulp-glue/dist/pulp_glue-*.whl -r test_requirements.txt -c upper_bounds_constraints.lock
102- else
103- pip install dist/pulp_cli-*.whl pulp-glue/dist/pulp_glue-*.whl -r test_requirements.txt
104- fi
80+ - name : " Install uv"
81+ uses : " astral-sh/setup-uv@v7"
82+ with :
83+ enable-cache : true
10584 - name : " Run tests"
10685 env :
10786 CONTAINER_RUNTIME : " ${{ matrix.container_runtime }}"
@@ -115,5 +94,15 @@ jobs:
11594 PULP_ENABLED_PLUGINS : " ${{ matrix.pulp_enabled_plugins }}"
11695 OAS_VERSION : " ${{ matrix.oas_version }}"
11796 run : |
118- .ci/run_container.sh make livetest
97+ if [ "${{matrix.lower_bounds}}" ]
98+ then
99+ RESOLUTION=("--resolution" "lowest-direct")
100+ elif [ "${{matrix.upper_bounds}}" ]
101+ then
102+ RESOLUTION=("--resolution" "highest")
103+ else
104+ RESOLUTION=()
105+ fi
106+
107+ uv run "${RESOLUTION[@]}" --isolated --with dist/pulp_glue*.whl --with dist/pulp_cli*.whl --only-group test .ci/run_container.sh make livetest
119108 ...
0 commit comments