From ccb2936f74099f46173ff3b16b80e5091a6904c2 Mon Sep 17 00:00:00 2001 From: Fallen_Breath Date: Tue, 21 May 2024 18:07:07 +0800 Subject: [PATCH] append mcdreforged package to requirements to verify better than without --- .github/workflows/verify_extra.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/verify_extra.yml b/.github/workflows/verify_extra.yml index 81fd455..fb4a3ab 100644 --- a/.github/workflows/verify_extra.yml +++ b/.github/workflows/verify_extra.yml @@ -22,6 +22,17 @@ jobs: - name: Verify Installability run: | python3 -m pip install -U pip + + output=$(pip3 install --dry-run --no-deps -I --report - --quiet mcdreforged 2>/dev/null) + mcdr_version=$(echo -E "$output" | jq '.install[0].metadata.version' -r) + if [ -z $mcdr_version ]; then + echo "MCDR version not found. pip output:" + echo -E "$output" + exit 1 + fi + echo "Latest MCDR version = $mcdr_version" + echo "mcdreforged==$mcdr_version" >> src/requirements_extra.txt + pip3 install -r src/requirements_extra.txt echo "# Installation Summary (python ${{matrix.python}})" >> $GITHUB_STEP_SUMMARY