Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 22 additions & 0 deletions .github/workflows/issue_to_jira.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
name: Create JIRA issue

on:
issues:
types: [opened]

permissions: {}

jobs:
call-workflow-create-jira-issue:
if: startsWith(github.repository, 'MiraGeoscience/') # run on the Mira repo only
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-issue_to_jira.yml@v3
permissions:
contents: read
issues: write
with:
project-key: 'GEOPY'
components: '[{"name": "gempy"}]'
secrets:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
19 changes: 19 additions & 0 deletions .github/workflows/pr_jira_actions.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
name: JIRA actions

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, edited]

jobs:
call-workflow-pr_jira_actions:
if: | # run on the Mira repo only
startsWith(github.repository, 'MiraGeoscience/') &&
(github.event.action != 'edited' || github.event.changes.title != null)
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_actions.yml@v3
permissions:
contents: read
pull-requests: write
secrets:
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
12 changes: 6 additions & 6 deletions .github/workflows/python_deploy_dev.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -20,11 +20,11 @@ jobs:
id-token: write
contents: write
with:
package-name: 'gempy-engine'
package-name: gempy-engine
python-version: '3.12'
source-repo-names: '["public-noremote-conda-dev"]'
recipe-path: conda.recipe/recipe.yaml
conda-channels: '["conda-forge"]'
publish-repo-names: '["public-noremote-conda-dev"]'
publish-repo-names: '["gempy-noremote-conda-dev"]'
build-experimental: true
secrets:
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
Expand All@@ -37,11 +37,11 @@ jobs:
id-token: write
contents: write
with:
package-manager: 'setuptools'
package-name: 'gempy-engine'
package-manager: setuptools
package-name: gempy-engine
version-tag: ${{ github.ref_name }}
python-version: '3.12'
virtual-repo-names: '["public-pypi-dev"]'
virtual-repo-names: '["gempy-pypi-dev"]'
secrets:
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/python_deploy_prod.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -36,7 +36,7 @@ jobs:
id-token: write
contents: write
with:
virtual-repo-names: '["public-noremote-conda-prod"]'
virtual-repo-names: '["gempy-noremote-conda-prod"]'
release-tag: ${{ github.event.release.tag_name || github.event.inputs.release-tag }}
secrets:
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
Expand All@@ -52,7 +52,7 @@ jobs:
contents: write
with:
package-name: 'gempy-engine'
virtual-repo-names: '["public-pypi-prod"]'
virtual-repo-names: '["gempy-pypi-prod"]'
release-tag: ${{ github.event.release.tag_name || github.event.inputs.release-tag }}
secrets:
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/security_scan.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
name: Security Scan

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

permissions: {}

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

jobs:
call-workflow-zizmor-annotate:
name: Zizmor analysis (advanced security)
# run on the Mira repo only
if: github.event_name != 'pull_request'
permissions:
security-events: write
contents: read
actions: read
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-zizmor-advanced-security.yml@v3

call-workflow-zizmor-advanced-security:
name: Zizmor analysis (annotate)
if: github.event_name == 'pull_request'
permissions:
checks: write
contents: read
actions: read
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-zizmor-annotate.yml@v3
2 changes: 1 addition & 1 deletion recipe.yaml → conda.recipe/recipe.yaml
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,7 +12,7 @@ package:
source:
# url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/gempy_engine-${{ version }}.tar.gz
# sha256:
path: .
path: ..

build:
number: 0
Expand Down