-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
721 additions
and
426 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[flake8] | ||
exclude = | ||
.eggs, | ||
.git, | ||
build, | ||
docs, | ||
tests | ||
ignore = | ||
AZ100, | ||
AZ200, | ||
AZ300, | ||
C, | ||
D, | ||
E, | ||
F, | ||
W503 | ||
per-file-ignores = | ||
rst-roles = | ||
doc, | ||
mod, | ||
py:attr, | ||
py:attribute, | ||
py:class, | ||
py:const, | ||
py:data, | ||
py:func, | ||
py:meth, | ||
py:mod, | ||
py:obj, | ||
py:ref |
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,28 @@ | ||
# This workflow requires a personal access token repository secret named `BUMPVERSION_TOKEN` with the following privileges: | ||
# - repo | ||
# - workflow | ||
|
||
name: GitHub Actions Version Updater | ||
|
||
on: | ||
schedule: | ||
# 12:00 AM on the first of every month | ||
- cron: '0 0 1 * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
with: | ||
# This requires a personal access token with the privileges to push directly to `main` | ||
token: ${{ secrets.BUMPVERSION_TOKEN }} | ||
persist-credentials: true | ||
- name: Run GitHub Actions Version Updater | ||
uses: saadmk11/github-actions-version-updater@v0.8.1 | ||
with: | ||
token: ${{ secrets.BUMPVERSION_TOKEN }} | ||
committer_email: 'bumpversion[bot]@ouranos.ca' | ||
committer_username: 'update-github-actions[bot]' | ||
pull_request_title: '[bot] Update GitHub Action Versions' |
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,61 @@ | ||
# This workflow requires a personal access token named `BUMPVERSION_TOKEN` with the following privileges: | ||
# - repo | ||
# - workflow | ||
|
||
name: "Bump Patch Version" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- .cruft.json | ||
- .editorconfig | ||
- .github/**.yml | ||
- .gitignore | ||
- .pre-commit-config.yaml | ||
- .yamllint.yaml | ||
- .zenodo.json | ||
- AUTHORS.rst | ||
- CHANGES.rst | ||
- CONTRIBUTING.rst | ||
- Makefile | ||
- .readthedocs.yml | ||
- docs/*.py | ||
- docs/*.rst | ||
- environment-docs.yml | ||
- environment-dev.yml | ||
- pyproject.toml | ||
- tests/**.py | ||
- tox.ini | ||
- figanos/__init__.py | ||
workflow_dispatch: | ||
|
||
jobs: | ||
bump_patch_version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Config Commit Bot | ||
run: | | ||
git config --local user.email "bumpversion[bot]@ouranos.ca" | ||
git config --local user.name "bumpversion[bot]" | ||
- name: Current Version | ||
run: echo "current_version=$(grep -E '__version__' figanos/__init__.py | cut -d ' ' -f3)" | ||
- name: Bump Patch Version | ||
run: | | ||
pip install bump-my-version | ||
echo "Bumping version" | ||
bump-my-version bump --tag patch | ||
echo "new_version=$(grep -E '__version__' figanos/__init__.py | cut -d ' ' -f3)" | ||
- name: Push Changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
force: false | ||
github_token: ${{ secrets.BUMPVERSION_TOKEN }} | ||
branch: ${{ github.ref }} |
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
Oops, something went wrong.