diff --git a/.github/workflows/published-charms-tests.yaml b/.github/workflows/published-charms-tests.yaml index c614e42f9..2bce3ac67 100644 --- a/.github/workflows/published-charms-tests.yaml +++ b/.github/workflows/published-charms-tests.yaml @@ -60,7 +60,7 @@ jobs: repository: ${{ matrix.charm-repo }} - name: Install patch dependencies - run: pip install poetry~=1.6 + run: pip install poetry~=1.6 uv~=0.5 - name: Update 'ops' dependency in test charm to latest run: | @@ -77,8 +77,10 @@ jobs: echo -e "\ngit+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY@$GITHUB_SHA#egg=ops" >> requirements.txt elif [ -e "poetry.lock" ]; then poetry add git+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY@$GITHUB_SHA --lock + elif [ -e "uv.lock" ]; then + uv add --frozen --raw-sources git+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY@$GITHUB_SHA else - echo "Error: No requirements.txt or poetry.lock file found" + echo "Error: No requirements.txt or poetry.lock or uv.lock file found" exit 1 fi