Skip to content

Commit 240bfb2

Browse files
committed
Merge branch 'release/ga-4.7'
2 parents 35b2f5d + c02a76d commit 240bfb2

File tree

99 files changed

+11055
-3356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+11055
-3356
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ version: 2
77
updates:
88
- package-ecosystem: "github-actions"
99
directory: "/"
10-
schedule:
11-
interval: "monthly"
1210
target-branch: "develop"
11+
schedule:
12+
interval: "weekly"
13+
cooldown:
14+
default-days: 4

.github/workflows/issue_to_jira.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@ on:
44
issues:
55
types: [opened]
66

7+
permissions: {}
8+
79
jobs:
810
call-workflow-create-jira-issue:
9-
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-issue_to_jira.yml@main
10-
secrets: inherit
11+
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-issue_to_jira.yml@v2
12+
permissions:
13+
contents: read
14+
issues: write
1115
with:
1216
project-key: 'GEOPY'
1317
components: '[{"name": "grid-apps"}]'
18+
secrets:
19+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
20+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
21+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
name: Add JIRA issue summary
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
types: [opened]
66

7+
permissions: {}
8+
79
jobs:
810
call-workflow-add-jira-issue-summary:
9-
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_add_jira_summary.yml@main
10-
secrets: inherit
11+
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_add_jira_summary.yml@v2
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
secrets:
16+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
17+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
18+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

.github/workflows/python_analysis.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,34 @@ on:
1717
- feature/**
1818
- hotfix/**
1919

20+
permissions: {}
21+
2022
concurrency:
2123
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2224
cancel-in-progress: true
2325

2426
jobs:
2527
call-workflow-static-analysis:
2628
name: Static analysis
27-
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-static_analysis.yml@main
29+
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-static_analysis.yml@v2
30+
permissions:
31+
contents: read
32+
pull-requests: read
2833
with:
2934
package-manager: 'conda'
3035
app-name: 'grid_apps'
3136
python-version: '3.10'
32-
call-workflow-pre-commmit:
33-
name: Pre-Commit
34-
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-pre_commit.yml@main
35-
with:
36-
app-name: 'grid_apps'
3737
call-workflow-pytest:
3838
name: Pytest
39-
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-pytest.yml@main
39+
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-pytest.yml@v2
40+
permissions:
41+
contents: read
42+
pull-requests: read
4043
with:
4144
package-manager: 'conda'
4245
python-versions: '["3.10", "3.11", "3.12"]'
43-
cache-number: 1
4446
os: '["ubuntu-latest", "windows-latest"]'
47+
cache-number: 1
4548
codecov-reference-python-version: '3.10'
4649
codecov-reference-os: '["windows-latest"]'
4750
secrets:

.github/workflows/python_deploy_dev.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,41 @@ on:
55
tags:
66
- 'v*' # Push events to every version tag (eg. v1.0.0)
77

8+
permissions: {}
9+
810
concurrency:
911
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
1012
cancel-in-progress: true
1113

1214
jobs:
1315
call-workflow-conda-publish:
1416
name: Publish development conda package on JFrog Artifactory
15-
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_rattler_package.yml@main
17+
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_rattler_package.yml@v2
18+
permissions:
19+
id-token: write
20+
contents: write
1621
with:
1722
package-name: 'grid-apps'
1823
python-version: '3.10'
1924
source-repo-names: '["public-noremote-conda-dev"]'
2025
conda-channels: '["conda-forge"]'
21-
publish-repo-names: '["geology-noremote-conda-dev", "geophysics-noremote-conda-dev"]'
26+
publish-repo-names: '["public-noremote-conda-dev"]'
2227
secrets:
2328
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
2429
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
2530
call-workflow-pypi-publish:
26-
name: Publish development pypi package (JFrog Artifactory)
27-
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_pypi_package.yml@main
31+
name: Publish development pypi package (JFrog Artifactory, TestPyPI)
32+
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_pypi_package.yml@v2
33+
permissions:
34+
id-token: write
35+
contents: write
2836
with:
2937
package-manager: 'poetry'
3038
package-name: 'grid-apps'
3139
version-tag: ${{ github.ref_name }}
3240
python-version: '3.10'
33-
virtual-repo-names: '["geology-pypi-dev", "geophysics-pypi-dev"]'
41+
virtual-repo-names: '["public-pypi-dev", "test-pypi"]'
3442
secrets:
3543
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
3644
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
45+
PYPI_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }}

.github/workflows/python_deploy_prod.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
type: boolean
2020
default: true
2121

22+
permissions: {}
23+
2224
concurrency:
2325
group: ${{ github.workflow }}-${{ github.event.release.tag_name || github.event.inputs.release-tag || github.run_id }}
2426
cancel-in-progress: true
@@ -27,21 +29,28 @@ jobs:
2729
call-workflow-conda-release:
2830
name: Publish production Conda package on JFrog Artifactory
2931
if: ${{ github.event_name == 'release' || github.event.inputs.publish-conda == 'true' }}
30-
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_conda_assets.yml@main
32+
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_conda_assets.yml@v2
33+
permissions:
34+
id-token: write
35+
contents: write
3136
with:
32-
virtual-repo-names: '["geology-noremote-conda-prod", "geophysics-noremote-conda-prod"]'
37+
virtual-repo-names: '["public-noremote-conda-prod"]'
3338
release-tag: ${{ github.event.release.tag_name || github.event.inputs.release-tag }}
3439
secrets:
3540
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
3641
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
3742
call-workflow-pypi-release:
38-
name: Publish production PyPI package (JFrog Artifactory)
43+
name: Publish production PyPI package (JFrog Artifactory, PyPI)
3944
if: ${{ github.event_name == 'release' || github.event.inputs.publish-pypi == 'true' }}
40-
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_pypi_assets.yml@main
45+
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_pypi_assets.yml@v2
46+
permissions:
47+
id-token: write
48+
contents: write
4149
with:
4250
package-name: 'grid-apps'
43-
virtual-repo-names: '["geology-pypi-prod", "geophysics-pypi-prod"]'
51+
virtual-repo-names: '["public-pypi-prod", "pypi"]'
4452
release-tag: ${{ github.event.release.tag_name || github.event.inputs.release-tag }}
4553
secrets:
4654
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
4755
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
56+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Security Scan
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
branches:
7+
- develop
8+
- main
9+
- release/**
10+
- feature/**
11+
- hotfix/**
12+
push:
13+
branches:
14+
- develop
15+
- main
16+
- release/**
17+
- feature/**
18+
- hotfix/**
19+
20+
permissions: {}
21+
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
call-workflow-zizmor-annotate:
28+
name: Zizmor analysis (advanced security)
29+
if: ${{ github.event_name != 'pull_request' }}
30+
permissions:
31+
security-events: write
32+
contents: read
33+
actions: read
34+
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-zizmor-advanced-security.yml@v2
35+
36+
call-workflow-zizmor-advanced-security:
37+
name: Zizmor analysis (annotate)
38+
if: ${{ github.event_name == 'pull_request' }}
39+
permissions:
40+
checks: write
41+
contents: read
42+
actions: read
43+
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-zizmor-annotate.yml@v2

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,6 @@ dmypy.json
144144

145145
# tempory generated files
146146
pyproject-sha.toml
147+
148+
#version ignore
149+
grid_apps/_version.py

.idea/copyright/MiraGeoscience.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.pre-commit-config.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,27 @@ ci:
1111
autoupdate_schedule: monthly
1212

1313
repos:
14+
# - repo: https://github.com/python-poetry/poetry # TODO: re-enable with pixi (does not support source=pypi)
15+
# rev: 2.2.1
16+
# hooks:
17+
# - id: poetry-check
18+
# args: [--no-plugins]
1419
- repo: https://github.com/hadialqattan/pycln
15-
rev: v2.5.0
20+
rev: v2.6.0
1621
hooks:
1722
- id: pycln
1823
args: [ --config=pyproject.toml ]
1924
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.9.1
25+
rev: v0.14.3
2126
hooks:
22-
- id: ruff
27+
- id: ruff-check
2328
args:
2429
- --fix
2530
- --exit-non-zero-on-fix
2631
# - --unsafe-fixes
2732
- id: ruff-format
2833
- repo: https://github.com/pre-commit/mirrors-mypy
29-
rev: v1.14.1
34+
rev: v1.18.2
3035
hooks:
3136
- id: mypy
3237
additional_dependencies: [
@@ -65,13 +70,13 @@ repos:
6570
types: [python]
6671
exclude: ^(devtools|docs|grid_apps-assets)/
6772
- repo: https://github.com/codespell-project/codespell
68-
rev: v2.3.0
73+
rev: v2.4.1
6974
hooks:
7075
- id: codespell
7176
exclude: (-lock\.ya?ml|\benvironments/.*\.ya?ml|\.ipynb|^THIRD_PARTY_SOFTWARE\.rst)$
7277
entry: codespell -I .codespellignore
7378
- repo: https://github.com/pre-commit/pre-commit-hooks
74-
rev: v5.0.0
79+
rev: v6.0.0
7580
hooks:
7681
- id: trailing-whitespace
7782
exclude: \.mdj$
@@ -99,7 +104,7 @@ repos:
99104
exclude_types: [jupyter]
100105
exclude: ^docs/(.*/)?images/
101106
- repo: https://github.com/rstcheck/rstcheck
102-
rev: v6.2.4
107+
rev: v6.2.5
103108
hooks:
104109
- id: rstcheck
105110
exclude: ^THIRD_PARTY_SOFTWARE.rst$

0 commit comments

Comments
 (0)