add github PR check for dependencies sync #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Dependencies Check | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| paths: | |
| - pyproject.toml | |
| - requirements.txt | |
| - scripts/check_deps.py # Include the script itself | |
| jobs: | |
| test: | |
| name: Check dependencies sync between pyproject.toml and requirements.txt | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.13 | |
| - name: Install dependencies | |
| run: python -m pip install --upgrade tomli | |
| - name: Run script | |
| run: python3 bin/check_deps.py |