python-check-requirements.yml 916 B

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