chore(deps-dev): update pytest-cov requirement from <7,>=5 to >=5,<8 #13
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: Paper PR image cleanup | |
| on: | |
| pull_request_target: | |
| types: [labeled, synchronize] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: paper-image-cleanup-${{ github.event.pull_request.number }} | |
| cancel-in-progress: false | |
| jobs: | |
| paper-image-cleanup: | |
| if: >- | |
| github.event.pull_request != null && | |
| contains(github.event.pull_request.labels.*.name, 'paper-image-sync') | |
| runs-on: ubuntu-latest | |
| steps: | |
| # IMPORTANT: pull_request_target runs with elevated permissions. | |
| # We only checkout the base repo (trusted) and we never execute code from the PR. | |
| - name: Checkout base repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install pillow pyyaml requests | |
| - name: Process paper images and open docs PR | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| REPO: ${{ github.repository }} | |
| # Token with permissions to push a branch + open PR in the docs repo. | |
| # Create as a fine-grained PAT or GitHub App token. | |
| PYSR_DOCS_TOKEN: ${{ secrets.PYSR_DOCS_TOKEN }} | |
| PYSR_DOCS_REPO: MilesCranmerBot/PySR_Docs | |
| # Where images live in the docs repo: | |
| PYSR_DOCS_IMAGES_DIR: images | |
| # Resizing/compression targets: | |
| MAX_WIDTH: "800" | |
| JPEG_QUALITY: "80" | |
| run: | | |
| python scripts/paper_image_sync.py |