-
Notifications
You must be signed in to change notification settings - Fork 2
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
101 changed files
with
5,435 additions
and
2,537 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 |
---|---|---|
|
@@ -6,9 +6,6 @@ exclude = | |
docs/conf.py, | ||
tests | ||
ignore = | ||
AZ100, | ||
AZ200, | ||
AZ300, | ||
C, | ||
D, | ||
E, | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,15 +1,22 @@ | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
directory: /.github/workflows | ||
schedule: | ||
interval: daily | ||
time: '12:00' | ||
open-pull-requests-limit: 10 | ||
interval: monthly | ||
groups: | ||
actions: | ||
patterns: | ||
- "*" | ||
|
||
- package-ecosystem: pip | ||
directory: / | ||
schedule: | ||
interval: daily | ||
time: '12:00' | ||
open-pull-requests-limit: 10 | ||
interval: monthly | ||
groups: | ||
python: | ||
patterns: | ||
- "*" |
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
# This workflow requires a personal access token named `BUMP_VERSION_TOKEN` with the following privileges: | ||
# - Contents: Read and Write | ||
# - Metadata: Read-Only | ||
# - Pull Requests: Read and Write | ||
|
||
name: "Bump Patch Version" | ||
name: Bump Patch Version | ||
|
||
on: | ||
push: | ||
|
@@ -21,7 +16,11 @@ on: | |
- .secrets.baseline | ||
- .yamllint.yaml | ||
- AUTHORS.rst | ||
- CHANGES.rst | ||
- CHANGELOG.rst | ||
- CI/**/*.in | ||
- CI/**/*.py | ||
- CI/**/*.txt | ||
- CODE_OF_CONDUCT.md | ||
- CONTRIBUTING.rst | ||
- MANIFEST.in | ||
- Makefile | ||
|
@@ -32,11 +31,10 @@ on: | |
- environment-dev.yml | ||
- environment.yml | ||
- pyproject.toml | ||
- setup.py | ||
- src/xscen/__init__.py | ||
- templates | ||
- tests/*.py | ||
- tox.ini | ||
- xscen/__init__.py | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -47,35 +45,47 @@ jobs: | |
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: write | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | ||
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | ||
with: | ||
disable-sudo: true | ||
egress-policy: block | ||
allowed-endpoints: > | ||
api.github.com:443 | ||
files.pythonhosted.org:443 | ||
github.com:443 | ||
pypi.org:443 | ||
- uses: actions/[email protected] | ||
- name: Generate App Token | ||
id: token_generator | ||
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0 | ||
with: | ||
app-id: ${{ secrets.OURANOS_HELPER_BOT_ID }} | ||
private-key: ${{ secrets.OURANOS_HELPER_BOT_KEY }} | ||
- name: Checkout Repository | ||
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/[email protected] | ||
token: ${{ steps.token_generator.outputs.token }} | ||
- name: Set up Python3 | ||
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
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: Install bump-my-version | ||
run: | | ||
python -m pip install "bump-my-version>=0.18.3" | ||
- name: Import GPG Key | ||
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0 | ||
with: | ||
gpg_private_key: ${{ secrets.OURANOS_HELPER_BOT_GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.OURANOS_HELPER_BOT_GPG_PRIVATE_KEY_PASSWORD }} | ||
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
trust_level: 5 | ||
- name: Current Version | ||
run: | | ||
bump-my-version show current_version | ||
CURRENT_VERSION="$(grep -E '__version__' xscen/__init__.py | cut -d ' ' -f3)" | ||
CURRENT_VERSION="$(grep -E '__version__' src/xscen/__init__.py | cut -d ' ' -f3)" | ||
echo "current_version=${CURRENT_VERSION}" | ||
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV | ||
- name: Install CI libraries | ||
run: | | ||
python -m pip install --require-hashes -r CI/requirements_ci.txt | ||
- name: Conditional Bump Version | ||
run: | | ||
if [[ ${{ env.CURRENT_VERSION }} =~ -dev(\.\d+)? ]]; then | ||
|
@@ -85,10 +95,11 @@ jobs: | |
echo "Version is stable, bumping 'patch' version" | ||
bump-my-version bump patch | ||
fi | ||
bump-my-version show-bump | ||
NEW_VERSION="$(grep -E '__version__' src/xscen/__init__.py | cut -d ' ' -f3)" | ||
echo "new_version=${NEW_VERSION}" | ||
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV | ||
- name: Push Changes | ||
uses: ad-m/[email protected] | ||
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # v0.8.0 | ||
with: | ||
force: false | ||
github_token: ${{ secrets.BUMP_VERSION_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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
actions: write | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | ||
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | ||
with: | ||
disable-sudo: true | ||
egress-policy: block | ||
|
@@ -25,7 +25,8 @@ jobs: | |
github.com:443 | ||
objects.githubusercontent.com:443 | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
|
||
- name: Cleanup | ||
run: | | ||
|
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.