Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
cfeffc4
Re work parameters and drivers
domfournier May 28, 2024
0816e6b
Update reqs
domfournier May 28, 2024
21c859d
Remove devtools files
domfournier May 28, 2024
1a0ddee
Create static method on driver
domfournier May 28, 2024
5388244
GEOPY-863: simpler version syntax in pyproject.toml
sebhmg May 28, 2024
805ef19
GEOPY-863: use latest published simpeg-drivers version
sebhmg May 28, 2024
1034d7d
GEOPY-863: update Conda env locked files
sebhmg May 28, 2024
4590a44
Fix tests
domfournier May 28, 2024
9cb165f
Fix test
domfournier May 29, 2024
7994701
GEOP-863: add missing indirect dependencies for conda-lock
sebhmg May 29, 2024
7c0bf68
Merge pull request #18 from sebhmg/GEOPY-863
domfournier May 29, 2024
c173554
Update options of simulation out_group
domfournier May 29, 2024
9cccda9
Fix test
domfournier May 29, 2024
0c12353
Merge branch 'GEOPY-863' into GEOPY-1530
domfournier May 29, 2024
721e547
Update lock files
domfournier May 29, 2024
3f8163e
Move create_surface to plate class
domfournier May 31, 2024
dba3838
Rename and change inputs
domfournier May 31, 2024
2cb9e27
Merge branch 'develop' into GEOPY-1530
domfournier May 31, 2024
11bfcef
Adjust tests
domfournier May 31, 2024
a763bdc
Update install.bat
domfournier May 31, 2024
369bb2d
Update requirement files
domfournier May 31, 2024
1319f97
Remove iml file
domfournier May 31, 2024
db95587
Revert "Remove iml file"
domfournier May 31, 2024
17350ee
Move diagonal balance and min refinement to Mesh group
domfournier May 31, 2024
966a473
Merge branch 'develop' into GEOPY-1530
domfournier May 31, 2024
e1601c9
Change target
domfournier May 31, 2024
9a17b15
Merge pull request #17 from MiraGeoscience/GEOPY-1530
domfournier May 31, 2024
d672b03
Add point_simulation core modules
domfournier May 31, 2024
3af4a82
Merge branch 'develop' into GEOPY-1524
domfournier May 31, 2024
60afec0
First full run
domfournier May 31, 2024
6c06dab
Bulk update
domfournier Jun 4, 2024
73ef0dc
Switch to data to avoid transformation
domfournier Jun 4, 2024
86b72a5
Add output_distance comps. Continue work on driver
domfournier Jun 7, 2024
8c619f4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 19, 2024
bc164ad
Remove series
domfournier Jun 19, 2024
2bbf205
FIx dependencies on releases
domfournier Jun 19, 2024
8f8008d
Merge branch 'GEOPY-1524' of https://github.com/MiraGeoscience/plate-…
domfournier Jun 19, 2024
fe0d09b
Merge branch 'release/0.1.0' into GEOPY-1524
domfournier Jun 19, 2024
e2ee4d4
Merge branch 'release/0.1.0' into release/0.2.0
domfournier Jun 19, 2024
616c967
Update requirements
domfournier Jun 19, 2024
f79cfc0
Merge branch 'release/0.1.1' into GEOPY-1524
domfournier Jun 19, 2024
0ab7981
Fix tests
domfournier Jun 19, 2024
bae2cc3
Re-build enviroment with tbb on simpeg-drivers
domfournier Jun 20, 2024
cac5b7e
Fix version of intel-openmp
domfournier Jun 21, 2024
0b3a0d8
Update reqs
domfournier Jun 24, 2024
2c21e8f
Update reqs
domfournier Jul 10, 2024
ab2e234
Change to 0.1.0-beta.2
domfournier Jul 10, 2024
8fbbfe3
Lock files
domfournier Jul 10, 2024
9e148fa
Update locks with latest
domfournier Jul 10, 2024
406204c
Fix tests
domfournier Jul 10, 2024
85861ea
Merge branch 'develop' into GEOPY-1524
domfournier Jul 10, 2024
6dcb587
Merge branch 'release/0.1.1' into GEOPY-1524
domfournier Jul 10, 2024
507b111
Merge pull request #26 from MiraGeoscience/GEOPY-1524
domfournier Jul 10, 2024
de9406f
Update locks
domfournier Jul 10, 2024
616e513
[DEVOPS-452] Use github workflows
Jul 29, 2024
b3e595b
[DEVOPS-452] Update .pre-commit-config with newer versions
Jul 29, 2024
ef1135a
[DEVOPS-452] Mypy fixes
Jul 29, 2024
0d82d47
[DEVOPS-452] Disable pre-commit action in public repository
Jul 29, 2024
4089422
[DEVOPS-452] Delete useless devtools scripts
Jul 30, 2024
7086232
[DEVOPS-452] Update python_analysis with the new CI-tool release
Jul 31, 2024
64adbe7
[DEVOPS+452] Update geoapps-utils and octree-creation-app references
Jul 31, 2024
d9d6cdd
[DEVOPS-452] Update geoapps-utils and simpeg-drivers references
Jul 31, 2024
1e719e7
[DEVOPS-452] Modify mira-simpeg and simpeg-drivers references
Jul 31, 2024
d981e66
[DEVOPS+452] Only use develop references
Jul 31, 2024
7ce34c8
fixup pre-commit config
sebhmg Jul 31, 2024
5b86d81
[DEVOPS-452] Apply suggestions from code review
Swendart Aug 1, 2024
4a13716
[DEVOPS-452] Test to change reference to geoapps-utils
Aug 1, 2024
b50cac6
Merge branch 'DEVOPS-452' of https://github.com/MiraGeoscience/plate-…
Aug 1, 2024
69bb6c6
[DEVOPS-452] Undo reference changement
Aug 1, 2024
6a6e2c4
Merge branch 'main' into develop
sebhmg Aug 3, 2024
8af69d9
restore references to develop branches
sebhmg Aug 3, 2024
dfe3263
aesthetic: reorder dependency list
sebhmg Aug 3, 2024
57c1625
relock conda envs on latest develop revisions
sebhmg Aug 3, 2024
d981d73
Merge remote-tracking branch 'upstream/release/0.1.1' into develop
sebhmg Aug 3, 2024
734ff14
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 3, 2024
42217e9
fix modified import path
sebhmg Aug 3, 2024
d0b5c2e
Merge branch 'DEVOPS-452' into merge_to_develop
sebhmg Aug 7, 2024
8eeea82
fix import of geoapps_utils module
sebhmg Aug 7, 2024
3b0a5bf
checkout with LFS
sebhmg Aug 7, 2024
2f6622a
Merge pull request #30 from sebhmg/develop
sebhmg Aug 7, 2024
95894f0
fix typo in ui.json
sebhmg Aug 9, 2024
7ef29ba
[DEVOPS-440] Use double quote instead in README
Aug 29, 2024
d47a128
force a run of CodeQL
sebhmg Aug 29, 2024
a2519e3
Merge pull request #33 from MiraGeoscience/DEVOPS-440
sebhmg Aug 29, 2024
4809f64
Relock files
domfournier Sep 11, 2024
40f97c9
Update test
domfournier Sep 12, 2024
c97d1dc
Fix issue with out_group not copy. Add all remaining forward types
domfournier Sep 12, 2024
052e46b
Generalize labels
domfournier Sep 12, 2024
62a0997
Update locks
domfournier Sep 12, 2024
b2ef703
Shorten the label, Add tooltip
domfournier Sep 12, 2024
7770ce7
Merge pull request #35 from MiraGeoscience/GEOPY-1759
domfournier Sep 12, 2024
8e71158
Fix parameters. use write method to update parameters
domfournier Sep 13, 2024
164bd4d
Update target
domfournier Sep 13, 2024
7baacbb
Use create method in test
domfournier Sep 13, 2024
c3b3aa1
[DEVOPS-466] Update input variables in github shared workflows
Sep 16, 2024
8fd249e
Merge pull request #36 from MiraGeoscience/GEOPY-1761
domfournier Sep 17, 2024
9d3851f
[GEOPY-1712] Exclude RUF005
Sep 18, 2024
6738531
Merge pull request #38 from MiraGeoscience/GEOPY-1712
Swendart Sep 19, 2024
bdb53fa
[DEVOPS-466] Update python_analysis
Sep 25, 2024
59738f4
[DEVOPS-466] Update before merging
Sep 27, 2024
06515d2
Merge pull request #37 from MiraGeoscience/DEVOPS-466
Swendart Sep 27, 2024
c51d3a0
[DEVOPS-504] Add deploy workflows + Add conda's recipe
Oct 7, 2024
3326e3c
[DEVOPS-504] Update deploy workflow
Oct 7, 2024
01b2365
[DEVOPS-515] relock on release branches + accept py 3.11
sebhmg Oct 8, 2024
0919b09
[DEVOPS-504] Update pyproject.toml
Oct 8, 2024
ca4819d
[DEVOPS-504] Update deploy workflows
Oct 8, 2024
d4b710a
[DEVOPS-515] bump version to beta.3
sebhmg Oct 9, 2024
f6975c4
[DEVOPS-515] relock on param-sweeps and simpeg-drivers release branches
sebhmg Oct 9, 2024
9610952
Merge pull request #39 from MiraGeoscience/DEVOPS-515
sebhmg Oct 10, 2024
7e3d8f4
[DEVOPS-515] bump version to 0.2.0-alpha on development
sebhmg Oct 10, 2024
e49a2cf
[DEVOPS-504] Update deployment workflows
Oct 10, 2024
015b982
[DEVOPS-504] Update refs
Oct 10, 2024
8e66fac
[DEVOPS-504] Update conda's recipe
Oct 10, 2024
b01c1d8
[DEVOPS-504] Update conda's recipe
Oct 10, 2024
7bafb9f
Update tooltips
benk-mira Oct 10, 2024
30049c1
bump version back
benk-mira Oct 11, 2024
93318d3
Merge pull request #41 from MiraGeoscience/GEOPY-1219
domfournier Oct 11, 2024
ca0fe18
update explanation comment on dependency URL
sebhmg Oct 12, 2024
5cb8dfa
Revert "bump version back"
sebhmg Oct 12, 2024
cb93036
[DEVOPS-504] Generate conda lock files
Oct 15, 2024
1dd1b9a
Merge branch 'develop' of https://github.com/MiraGeoscience/plate-sim…
Oct 15, 2024
21cb9d6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 15, 2024
3446af4
[DEVOPS-504] Generate conda lock files
Oct 16, 2024
904aa08
Merge branch 'DEVOPS-504' of https://github.com/MiraGeoscience/plate-…
Oct 16, 2024
f20926c
[DEVOPS-504] Update pyproject's version
Oct 16, 2024
d4fbe6c
[DEVOPS-504] Generate conda lock
Oct 17, 2024
e1530e4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 17, 2024
e18cccd
[DEVOPS-504] Update poetry version
Oct 17, 2024
d94d153
Merge branch 'DEVOPS-504' of https://github.com/MiraGeoscience/plate-…
Oct 17, 2024
26d15ad
[DEVOPS-504] Update package version
Oct 17, 2024
dadca67
Merge pull request #40 from MiraGeoscience/DEVOPS-504
Swendart Oct 17, 2024
e225df0
[DEVOPS-515] fix release version to 0.1.0 alpha in conda recipe
sebhmg Oct 18, 2024
011cbbf
[DEVOPS-515] apply pre-commit autoupdate
sebhmg Oct 19, 2024
e4e3467
[DEVOPS-515] update versions simpeg-drivers and depedencies
sebhmg Oct 19, 2024
c8b1771
[DEVOPS-515] remove redundant commented examples
sebhmg Oct 19, 2024
96858a3
[DEVOPS-515] publish to codecov only for one OS
sebhmg Oct 19, 2024
c2e68b7
[DEVOPS-511] Update deploy workflows to release pip package on pypi
Oct 20, 2024
130b7cb
Add environment file for docs.
domfournier Oct 22, 2024
3f75b83
Merge branch 'DEVOPS-515_release_version_for_conda' into GEOPY-1804
domfournier Oct 22, 2024
af0eb4b
Remove duplicate RTD file
domfournier Oct 22, 2024
dc766ae
Typo
domfournier Oct 22, 2024
f21ab45
Fix toc
domfournier Oct 22, 2024
a641aab
include third party in toc
domfournier Oct 22, 2024
436145c
Merge pull request #44 from MiraGeoscience/GEOPY-1804
domfournier Oct 23, 2024
51d4ca3
[DEVOPS-515] relock on latest revisions, plus constraints on glibc
sebhmg Oct 23, 2024
29323af
[DEVOPS-515] pre-commit autoupdate and fix too many postional arguments
sebhmg Oct 23, 2024
ef75291
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 23, 2024
7bc6ef5
Merge pull request #45 from MiraGeoscience/DEVOPS-515
sebhmg Oct 24, 2024
4b1e494
Merge branch 'release/0.1.0' into DEVOPS-511
sebhmg Oct 24, 2024
d5f76af
Merge pull request #43 from MiraGeoscience/DEVOPS-511
sebhmg Oct 24, 2024
cf58e64
add concurrency conditions to github publish workflows
sebhmg Nov 1, 2024
168a163
change labels of publish stages
sebhmg Nov 1, 2024
b86e310
Update usage.rst
domfournier Nov 1, 2024
0c1d8db
[DEVOPS-544] Add a constrain on glibc in the conda recipe
Nov 4, 2024
ab217c8
[DEVOPS-544] Use a virtual package to constriain glibc
Swendart Nov 8, 2024
960b347
Merge pull request #46 from MiraGeoscience/DEVOPS-544
Swendart Nov 8, 2024
267a5cf
fix link to homepage
sebhmg Nov 8, 2024
f2f99a3
[GEOPY-1860] do not include top level files in wheels
sebhmg Nov 20, 2024
9576818
use new publish workflows
sebhmg Nov 20, 2024
2e6ef60
bump version to beta.4
sebhmg Nov 20, 2024
3befe74
[GEOPY-1859] adjustments in the doc
sebhmg Nov 20, 2024
f8752e3
relock on newer pubished depedencies
sebhmg Nov 20, 2024
db21f83
fix URLs to readthedocs
sebhmg Nov 20, 2024
74c3893
relock to a newer published simpeg-drivers
sebhmg Nov 20, 2024
6944b8e
Move model creation up to driver
domfournier Nov 28, 2024
a90cda8
Update tests
domfournier Nov 28, 2024
7013036
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 28, 2024
ea51948
fix a rstcheck error
sebhmg Nov 29, 2024
002d4b7
rst_check: ignore substitution defined in rst_epilog
sebhmg Nov 29, 2024
b1ea8a7
clearer constraint on Python version
sebhmg Nov 29, 2024
e542834
in conda recipe, also supports Python 3.11
sebhmg Nov 29, 2024
3116e59
Merge branch 'release/0.1.0' into GEOPY-1882
sebhmg Nov 29, 2024
d6f0eec
Merge pull request #47 from MiraGeoscience/GEOPY-1882
domfournier Nov 29, 2024
5e114be
Typo in conf
domfournier Nov 30, 2024
f63602b
Remove reference to static
domfournier Nov 30, 2024
078b2c7
Merge pull request #51 from MiraGeoscience/GEOPY-1883b
sebhmg Dec 4, 2024
6385cdd
bump version to beta.5
sebhmg Dec 10, 2024
7714f5b
relock on newer published packages
sebhmg Dec 10, 2024
0ee68c3
[DEVOPS-540] Test version consistency
Dec 17, 2024
271f5f0
Merge pull request #55 from MiraGeoscience/DEVOPS-540
domfournier Dec 17, 2024
92719a9
[GEOPY-1933] also check copyright date in package.rst
sebhmg Jan 12, 2025
0a8479b
[GEOPY-1933] remove iml file from template repo
sebhmg Jan 12, 2025
93c4547
[GEOPY-1933] do not commit iml as it contains references to local path
sebhmg Jan 12, 2025
c612cda
[GEOPY-1933] update copyright date
sebhmg Jan 12, 2025
d57c694
[GEOPY-1933] pre-commit autoupdate
sebhmg Jan 12, 2025
59444d9
[GEOPY-1933] update remaining copyright dates
sebhmg Jan 12, 2025
c13df58
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 12, 2025
d34737d
Merge pull request #59 from MiraGeoscience/GEOPY-1933
sebhmg Jan 12, 2025
dbb30cc
[GEOPY-1935] bump version to rc.1
sebhmg Jan 12, 2025
60f1e52
[GEOPY-1935] relock dependencies
sebhmg Jan 12, 2025
571e608
Merge pull request #60 from MiraGeoscience/GEOPY-1935
sebhmg Jan 12, 2025
c9e0821
Merge pull request #62 from MiraGeoscience/DEVOPS-635
Swendart Jan 30, 2025
82c846e
update summary
sebhmg Feb 8, 2025
f79003d
set version to 0.1.0
sebhmg Feb 8, 2025
1c9529f
in conda recipe, simplify depedency version constraints
sebhmg Feb 8, 2025
e2e73b0
in conda recipe, use python_min variable
sebhmg Feb 8, 2025
fbf2341
in conda recipe, switch maitainer from Sophie to Andrew
sebhmg Feb 8, 2025
ba2301e
ruff auto-formatting
sebhmg Feb 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 5 additions & 29 deletions .github/workflows/issue_to_jira.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,12 @@
# This workflow will create a JIRA issue upon creation of a GitHub issue

name: Create JIRA issue

on:
issues:
types: [opened]

jobs:
new_jira_issue:
runs-on: ubuntu-latest

steps:
- name: JIRA Login
uses: atlassian/gajira-login@v3.0.1
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Jira Create issue
id: create_jira_issue
uses: atlassian/gajira-create@v3.0.1
with:
project: GEOPY
issuetype: Story
summary: ${{ github.event.issue.title }}
description: "_from [GitHub issue #${{ github.event.issue.number }}|${{ github.event.issue.html_url }}]_"
# Additional fields in JSON format
#fields: '{"components": [{"name": "plate-simulation"}]}'
- name: Post JIRA link
uses: peter-evans/create-or-update-comment@v4
with:
# The number of the issue or pull request in which to create a comment.
issue-number: ${{ github.event.issue.number }}
# The comment body.
body: "JIRA issue [${{ steps.create_jira_issue.outputs.issue }}] was created."
call-workflow-create-jira-issue:
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-issue_to_jira.yml@main
secrets: inherit
with:
project-key: 'GEOPY'
60 changes: 3 additions & 57 deletions .github/workflows/pr_add_jira_summary.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,10 @@
# This workflow will comment the PR with the JIRA issue summary
# if a JIRA issue number is detected in the branch name or title

name: Add JIRA issue summary

on:
pull_request_target:
types: [opened]

jobs:
add_jira_summary:
runs-on: ubuntu-latest

steps:
- name: Find JIRA issue key
id: find_jira_key
env:
HEAD_REF: ${{ github.head_ref}}
PR_TITLE: ${{ github.event.pull_request.title }}
run: >
echo $HEAD_REF $PR_TITLE
| echo "issue_key=$(
grep -osi "\b\(GA\|GEOPY\|DEVOPS\)[ #-]*[0-9]\+"
| head -n1
| sed -E "s/([A-Z]+)[-# ]*([0-9]+)/\1-\2/i"
| tr [:lower:] [:upper:]
)"
>> $GITHUB_OUTPUT
- name: Get JIRA summary
id: get_jira_summary
if: ${{ steps.find_jira_key.outputs.issue_key }}
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_BASIC_AUTH: ${{ secrets.JIRA_BASIC_AUTH }}
run: >
curl -sS -X GET
-H "Authorization: Basic $JIRA_BASIC_AUTH"
-H "Content-Type: application/json"
"$JIRA_BASE_URL/rest/api/2/issue/${{ steps.find_jira_key.outputs.issue_key }}"
| echo "summary=$(jq -r '.fields.summary // empty')" >> $GITHUB_OUTPUT
- name: Extract PR title
id: get_pr_title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo "text=$(echo $PR_TITLE | sed -E "s/^\s*[?[A-Z]+[-# ]*[0-9]+]?[-: ]*(.*)/\1/i")" >> $GITHUB_OUTPUT
- name: Add comment
if: ${{ steps.find_jira_key.outputs.issue_key }}
env:
ISSUE_SUMMARY: ${{ steps.get_jira_summary.outputs.summary }}
TITLE_TEXT: ${{ steps.get_pr_title.outputs.text }}
PR_BODY: ${{ github.event.pull_request.body }}
run: >
jq
--arg ISSUE_ID "${{ steps.find_jira_key.outputs.issue_key }}"
--arg ISSUE_SUMMARY "$(cat <<< $ISSUE_SUMMARY)"
--arg TITLE_TEXT "$(cat <<< ${TITLE_TEXT:-$ISSUE_SUMMARY})"
--arg PR_BODY "$(cat <<< $PR_BODY)"
-c '{"title": ($ISSUE_ID + ": " + $TITLE_TEXT), "body": ("**" + $ISSUE_ID + " - " + $ISSUE_SUMMARY + "**\n" + $PR_BODY)}' <<< {}
| curl -sS -X POST -d @-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}"
-H "Content-Type: application/json"
"$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/pulls/${{ github.event.pull_request.number }}"
> /dev/null
call-workflow-add-jira-issue-summary:
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_add_jira_summary.yml@main
secrets: inherit
56 changes: 0 additions & 56 deletions .github/workflows/pytest-unix-os.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/pytest-windows.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/python_analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Python analysis

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- develop
- main
- release/**
- feature/**
- hotfix/**
push:
branches:
- develop
- main
- release/**
- feature/**
- hotfix/**

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
app-name: 'plate_simulation'
package-manager: 'conda'

jobs:
call-workflow-static-analysis:
name: Static analysis
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-static_analysis.yml@main
with:
package-manager: 'conda'
app-name: ${{ github.env.app-name }}
python-version: '3.10'
call-workflow-pytest:
name: Pytest
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-pytest.yml@main
with:
package-manager: 'conda'
python-versions: '["3.10", "3.11"]'
os: '["ubuntu-latest", "windows-latest"]'
cache-number: 1
codecov-reference-python-version: '3.10'
codecov-reference-os: '["windows-latest"]'
lfs: true
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/python_deploy_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy python package in development

on:
push:
tags:
- 'v*' # Push events to every version tag (eg. v1.0.0)

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
call-workflow-conda-publish:
name: Publish development conda package on JFrog Artifactory
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_rattler_package.yml@main
with:
package-name: 'plate-simulation'
python-version: '3.10'
source-repo-names: '["public-conda-dev-local", "conda-forge-dev-remote"]'
publish-repo-names: '["public-conda-dev"]'
secrets:
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
call-workflow-pypi-publish:
name: Publish development pypi package (JFrog Artifactory, TestPyPI)
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_pypi_package.yml@main
with:
package-manager: 'poetry'
package-name: 'plate-simulation'
version-tag: ${{ github.ref_name }}
python-version: '3.10'
virtual-repo-names: '["public-pypi-dev", "test-pypi"]'
secrets:
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
PYPI_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }}
46 changes: 46 additions & 0 deletions .github/workflows/python_deploy_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy python package in production

on:
release:
types: [published]
workflow_dispatch:
inputs:
release-tag:
description: 'Tag for the existing (draft) release to publish assets from'
required: true
publish-conda:
description: 'Publish Conda package'
required: false
default: true
publish-pypi:
description: 'Publish PyPI package'
required: false
default: true

concurrency:
group: ${{ github.workflow }}-${{ github.event.release.tag_name || github.event.inputs.release-tag || github.run_id }}
cancel-in-progress: true

jobs:
call-workflow-conda-release:
name: Publish production Conda package on JFrog Artifactory
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_conda_assets.yml@main
if: ${{ github.event_name == 'release' || github.event.inputs.publish-conda == 'true' }}
with:
virtual-repo-names: '["public-conda-prod"]'
release-tag: ${{ github.event.release.tag_name || github.event.inputs.release-tag }}
secrets:
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
call-workflow-pypi-release:
name: Publish production PyPI package (JFrog Artifactory, PyPI)
if: ${{ github.event_name == 'release' || github.event.inputs.publish-pypi == 'true' }}
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_pypi_assets.yml@main
with:
package-name: 'plate-simulation'
virtual-repo-names: '["public-pypi-prod", "pypi"]'
release-tag: ${{ github.event.release.tag_name || github.event.inputs.release-tag }}
secrets:
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
Loading