Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ jobs:
prepare:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.parser.outputs.versions }}
versions: ${{ steps.parser.outputs.versions || '[]' }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2

- name: Check license line changed
id: check
run: |
if git diff HEAD~1 HEAD -- pyproject.toml | grep -q '^[+-].*license = "Apache-2.0"'; then
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
elif git diff HEAD~1 HEAD -- pyproject.toml | grep -q '^[+-].*license = "Apache-2.0"'; then
echo "changed=true" >> "$GITHUB_OUTPUT"
else
echo "changed=false" >> "$GITHUB_OUTPUT"
Expand All @@ -35,11 +39,13 @@ jobs:
if: steps.check.outputs.changed == 'true'
id: parser
run: |
versions=$(python ci_loop_versions.py setuptools ">=77.0.1,<83")
python -m pip install --upgrade requests packaging
versions=$(python .github/scripts/ci_loop_versions.py setuptools ">=77.0.1,<83")
echo "versions=$versions" >> "$GITHUB_OUTPUT"

check:
needs: prepare
if: needs.prepare.outputs.versions != '[]'
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
Loading