From bb422697f73989013d41a708ff20f6c4cab11fd6 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Thu, 27 Aug 2026 14:39:04 -0300 Subject: [PATCH] Add .github --- .github/workflows/quality-gate.yml | 31 ++++++++++++++++++++++++++++++ .github/workflows/release.yml | 25 ++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/quality-gate.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/quality-gate.yml b/.github/workflows/quality-gate.yml new file mode 100644 index 0000000..f50c9c5 --- /dev/null +++ b/.github/workflows/quality-gate.yml @@ -0,0 +1,31 @@ +name: Quality gate + +on: + push: + branches: + - main + - 'release/**' + - 'feature/**' + pull_request: + branches: + - main + - 'release/**' + - 'feature/**' + types: [ opened, synchronize, reopened ] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + quality-gate: + uses: Aignosi/github_workflow_templates/.github/workflows/python-quality-gate.yml@main + permissions: + contents: read + pull-requests: write + issues: write + with: + project_name: 'laborious' + repositories: 'sientia-dataops-library, sientia-mlops-library' + requirements_file: 'requirements-light.txt' + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e051ea9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Create Release on Merge to Main + +on: + pull_request: + types: [closed] + branches: + - main + workflow_dispatch: + inputs: + version: + description: 'Version to release' + required: false + type: string + +jobs: + release: + if: | + (github.event_name == 'pull_request' && github.event.pull_request.merged == true) || + github.event_name == 'workflow_dispatch' + uses: Aignosi/github_workflow_templates/.github/workflows/dataops-module-release.yml@main + permissions: write-all + with: + project_name: 'laborious' + release_version: ${{ github.event.inputs.version || '' }} + secrets: inherit \ No newline at end of file