1name: Python check requirements.txt
 2
 3on:
 4  push:
 5    paths:
 6      - '.github/workflows/python-check-requirements.yml'
 7      - 'scripts/check-requirements.sh'
 8      - 'convert*.py'
 9      - '**/requirements*.txt'
10  pull_request:
11    paths:
12      - '.github/workflows/python-check-requirements.yml'
13      - 'scripts/check-requirements.sh'
14      - 'convert*.py'
15      - '**/requirements*.txt'
16
17concurrency:
18  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
19  cancel-in-progress: true
20
21jobs:
22  python-check-requirements:
23    runs-on: ubuntu-slim
24    name: check-requirements
25    steps:
26      - name: Check out source repository
27        uses: actions/checkout@v6
28      - name: Set up Python environment
29        uses: actions/setup-python@v6
30        with:
31          python-version: "3.11"
32      - name: Run check-requirements.sh script
33        run:  bash scripts/check-requirements.sh