2023-12-29 15:50:29 +01:00
|
|
|
name: Python check requirements.txt
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2024-03-02 06:11:06 +01:00
|
|
|
- '.github/workflows/python-check-requirements.yml'
|
2023-12-29 15:50:29 +01:00
|
|
|
- 'scripts/check-requirements.sh'
|
|
|
|
- 'convert*.py'
|
|
|
|
- 'requirements.txt'
|
|
|
|
- 'requirements/*.txt'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2024-03-02 06:11:06 +01:00
|
|
|
- '.github/workflows/python-check-requirements.yml'
|
2023-12-29 15:50:29 +01:00
|
|
|
- 'scripts/check-requirements.sh'
|
|
|
|
- 'convert*.py'
|
|
|
|
- 'requirements.txt'
|
|
|
|
- 'requirements/*.txt'
|
|
|
|
|
2024-03-22 18:15:06 +01:00
|
|
|
concurrency:
|
2024-04-04 18:30:53 +02:00
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
|
2024-03-22 18:15:06 +01:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-12-29 15:50:29 +01:00
|
|
|
jobs:
|
|
|
|
python-check-requirements:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: check-requirements
|
|
|
|
steps:
|
|
|
|
- name: Check out source repository
|
2024-04-03 20:01:13 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-12-29 15:50:29 +01:00
|
|
|
- name: Set up Python environment
|
2024-04-03 20:01:13 +02:00
|
|
|
uses: actions/setup-python@v5
|
2023-12-29 15:50:29 +01:00
|
|
|
with:
|
|
|
|
python-version: "3.11"
|
|
|
|
- name: Run check-requirements.sh script
|
2024-03-02 06:11:06 +01:00
|
|
|
run: bash scripts/check-requirements.sh
|