-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.21 KB
/
verify_extra.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Verify extra packages
on:
push:
paths:
- 'src/requirements_extra.txt'
- '.github/workflows/verify_extra.yml'
jobs:
verify:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.11', '3.12', '3.13'] # last 3 minor versions
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '${{ matrix.python }}'
- 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
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
pip3 freeze >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY