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