-
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.
Merge pull request #210 from Ouranosinc/cookiecutter-update
Cookiecutter update, support Python3.12, drop Python3.8
- Loading branch information
Showing
71 changed files
with
524 additions
and
311 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ on: | |
- .yamllint.yaml | ||
- .zenodo.json | ||
- AUTHORS.rst | ||
- CHANGES.rst | ||
- CHANGELOG.rst | ||
- CONTRIBUTING.rst | ||
- Makefile | ||
- .readthedocs.yml | ||
|
@@ -51,10 +51,13 @@ jobs: | |
files.pythonhosted.org:443 | ||
github.com:443 | ||
pypi.org:443 | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/[email protected] | ||
fetch-depth: 0 | ||
- name: Set up Python3 | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: "3.x" | ||
- name: Config Commit Bot | ||
|
@@ -67,7 +70,7 @@ jobs: | |
- name: Current Version | ||
run: | | ||
bump-my-version show current_version | ||
CURRENT_VERSION="$(grep -E '__version__' figanos/__init__.py | cut -d ' ' -f3)" | ||
CURRENT_VERSION="$(grep -E '__version__' src/figanos/__init__.py | cut -d ' ' -f3)" | ||
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV | ||
- name: Conditional Bump Version | ||
run: | | ||
|
@@ -80,7 +83,7 @@ jobs: | |
fi | ||
bump-my-version show-bump | ||
- 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 }} | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,8 @@ jobs: | |
github.com:443 | ||
objects.githubusercontent.com:443 | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
|
||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,8 @@ jobs: | |
allowed-endpoints: > | ||
api.github.com:443 | ||
- uses: actions/[email protected] | ||
- name: Verify Pull Request Opener | ||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||
with: | ||
script: | | ||
// Get a list of all issues created by the PR opener | ||
|
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 |
---|---|---|
|
@@ -32,6 +32,7 @@ jobs: | |
allowed-endpoints: > | ||
api.github.com:443 | ||
- uses: actions/[email protected] | ||
- name: Label Pull Request | ||
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
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,7 +6,7 @@ on: | |
- main | ||
paths-ignore: | ||
- .cruft.json | ||
- CHANGES.rst | ||
- CHANGELOG.rst | ||
- README.rst | ||
- pyproject.toml | ||
- tests/test_figanos.py | ||
|
@@ -34,9 +34,10 @@ jobs: | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | ||
with: | ||
egress-policy: audit | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- name: Set up Python${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install tox | ||
|
@@ -53,24 +54,23 @@ jobs: | |
strategy: | ||
matrix: | ||
include: | ||
- tox-env: "py38-coveralls" | ||
python-version: "3.8" | ||
- tox-env: "py39-coveralls" | ||
python-version: "3.9" | ||
- tox-env: "py310-coveralls" | ||
python-version: "3.10" | ||
- tox-env: "py311-coveralls" | ||
python-version: "3.11" | ||
# - tox-env: "py312" | ||
# python-version: "3.12" | ||
- tox-env: "py312" | ||
python-version: "3.12" | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | ||
with: | ||
egress-policy: audit | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- name: Set up Python${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install GDAL | ||
|
@@ -91,6 +91,10 @@ jobs: | |
name: Test with Python${{ matrix.python-version }} (Anaconda) | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: | ||
- "3.12" | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
@@ -99,18 +103,18 @@ jobs: | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | ||
with: | ||
egress-policy: audit | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- name: Setup Conda (Micromamba) with Python${{ matrix.python-version }} | ||
uses: mamba-org/[email protected] | ||
uses: mamba-org/setup-micromamba@422500192359a097648154e8db4e39bdb6c6eed7 # v1.8.1 | ||
with: | ||
cache-downloads: true | ||
environment-file: environment-dev.yml | ||
create-args: >- | ||
mamba | ||
python=3.11 | ||
- name: Conda and Mamba versions | ||
python=${{ matrix.python-version }} | ||
- name: Conda and Micromamba versions | ||
run: | | ||
mamba --version | ||
conda --version | ||
echo "micromamba $(micromamba --version)" | ||
- name: Install figanos | ||
run: | | ||
|
@@ -127,7 +131,7 @@ jobs: | |
python -m coveralls | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_FLAG_NAME: run-py311-conda | ||
COVERALLS_FLAG_NAME: run-conda-python${{ matrix.python-version }} | ||
COVERALLS_PARALLEL: true | ||
COVERALLS_SERVICE_NAME: github | ||
|
||
|
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 |
---|---|---|
|
@@ -27,9 +27,10 @@ jobs: | |
github.com:443 | ||
pypi.org:443 | ||
upload.pypi.org:443 | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- name: Set up Python3 | ||
uses: actions/[email protected] | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: "3.x" | ||
- name: Install packaging libraries | ||
|
@@ -39,4 +40,4 @@ jobs: | |
run: | | ||
python -m flit build | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/[email protected] | ||
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14 |
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 |
---|---|---|
|
@@ -26,10 +26,10 @@ jobs: | |
github.com:443 | ||
pypi.org:443 | ||
test.pypi.org:443 | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # 2.0.5 | ||
env: | ||
# This token is provided by Actions, you do not need to create your own token | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -51,9 +51,10 @@ jobs: | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | ||
with: | ||
egress-policy: audit | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- name: Set up Python3 | ||
uses: actions/[email protected] | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: "3.x" | ||
- name: Install packaging libraries | ||
|
@@ -63,7 +64,7 @@ jobs: | |
run: | | ||
python -m flit build | ||
- name: Publish distribution 📦 to Test PyPI | ||
uses: pypa/[email protected] | ||
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
skip-existing: true |
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.