-
Notifications
You must be signed in to change notification settings - Fork 3
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 #507 from AbsaOSS/feature/merge-support-branch
Feature/merge support branch
- Loading branch information
Showing
18 changed files
with
215 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,42 +28,42 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: [ "3.10" ] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
name: Test Pramen-Py | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: setup poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.4.2 | ||
|
||
- name: install dependencies | ||
working-directory: "./pramen-py" | ||
run: make --silent install | ||
|
||
- name: test | ||
working-directory: "./pramen-py" | ||
env: | ||
ENV: ci | ||
run: make --silent test | ||
|
||
release-python: | ||
needs: [ "test-python" ] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
name: Release Python artifact | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
|
||
- name: Prepare the release branch | ||
id: release_branch1 | ||
working-directory: "./pramen" | ||
|
@@ -74,7 +74,7 @@ jobs: | |
git config --global user.name "CI/CD bot" | ||
git checkout -b release/$VERSION | ||
git push --set-upstream origin release/$VERSION | ||
- name: Update version number | ||
id: release_branch | ||
working-directory: "./pramen-py" | ||
|
@@ -88,35 +88,35 @@ jobs: | |
git commit -m "Update version number to $VERSION" | ||
git push | ||
fi | ||
- name: install project dependencies | ||
run: | | ||
sudo apt install -y --no-install-recommends \ | ||
libssl-dev \ | ||
make | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.4.2 | ||
|
||
- name: Install dependencies | ||
working-directory: "./pramen-py" | ||
run: poetry install --no-interaction --no-root | ||
|
||
- name: build and publish the wheel to jfrog | ||
working-directory: "./pramen-py" | ||
env: | ||
ENV: pypi | ||
PRAMENPY_PYPI_TOKEN: ${{ secrets.PRAMENPY_PYPI_TOKEN }} | ||
run: make --silent publish | ||
|
||
release-sbt: | ||
needs: [ "release-python" ] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
name: Release Scala artifacts | ||
steps: | ||
- name: Checkout code | ||
|
@@ -158,7 +158,7 @@ jobs: | |
|
||
create-pr: | ||
needs: [ "release-sbt" ] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
name: Create Pull Request | ||
|
||
steps: | ||
|
@@ -181,6 +181,6 @@ jobs: | |
- name: Create Pull Request | ||
run: gh pr create -B "$BASE" -H "release/$VERSION" --title "Release Pramen v$VERSION" --body 'Created by Github action' | ||
env: | ||
BASE: ${{ github.event.inputs.branch }} | ||
BASE: ${{ github.head_ref || github.ref_name }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VERSION: ${{ steps.release_branch3.outputs.VERSION }} |
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
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.