-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: automatically upgrade requirements (#185)
* build!: limit to iminuit 1 * ci: upload HTML build folder upon failure * fix: add matplotlib to doc requirements
- Loading branch information
Showing
37 changed files
with
2,300 additions
and
192 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# cspell:ignore noreply | ||
|
||
name: Requirements (scheduled) | ||
|
||
on: | ||
schedule: | ||
- cron: "0 2 * * 1" | ||
|
||
jobs: | ||
upgrade: | ||
name: Upgrade requirement files | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
python-version: | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pip-tools | ||
- name: Upgrade dependencies | ||
run: bash reqs/upgrade.sh | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ matrix.python-version }} | ||
path: reqs/${{ matrix.python-version }} | ||
|
||
push: | ||
name: Create PR | ||
runs-on: ubuntu-20.04 | ||
needs: | ||
- upgrade | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
path: reqs | ||
- run: git status -s | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
commit-message: "ci: upgrade developer dependencies" | ||
committer: GitHub <noreply@github.com> | ||
author: | ||
${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
title: "ci: upgrade developer dependencies" | ||
assignees: ${{ github.actor }} | ||
reviewers: ${{ github.actor }} | ||
labels: | | ||
🖱️ DX | ||
🔨 Maintenance | ||
branch-suffix: timestamp | ||
delete-branch: true | ||
token: ${{ secrets.PAT }} | ||
- name: Print PR info | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |
Oops, something went wrong.