Skip to content

Commit

Permalink
Chore: Bump release version (#401)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Watkins <[email protected]>
  • Loading branch information
ModeSevenIndustrialSolutions authored Jan 2, 2025
1 parent 987f5cb commit 13899a4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/linting-action/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ runs:
run: |
# Check prerequisites
CURL_CMD=$(which curl)
if [ ! -x $CURL_CMD ]; then echo "curl binary not found"; exit 1; fi
if [ ! -x "$CURL_CMD" ]; then echo "curl binary not found"; exit 1; fi
- name: "Download Python dependencies file"
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
run: |
# Check output from: python-project-version
PYTHON_PROJECT_VERSION="${{ steps.python-project-version.outputs.python_project_version }}"
if [ "$PYTHON_PROJECT_VERSION" != "v0.1.12" ]; then
if [ "$PYTHON_PROJECT_VERSION" != "v0.1.13" ]; then
echo "ERROR: Python project version was not as expected"
echo "python_project_version: $PYTHON_PROJECT_VERSION"; exit 1
else
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/primary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ permissions: {}
jobs:
one-password:
name: "1Password"
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/workflows/one-password.yaml@main
# Do NOT run until change is merged; secrets will NOT be available and workflow WILL fail
if: github.event_name != 'pull_request'
Expand All @@ -39,6 +40,7 @@ jobs:
permissions: {}
steps:
- name: "Check for required secrets/API keys/tokens"
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/actions/github-secrets@main
with:
# Mandatory secrets/variables to check
Expand All @@ -48,6 +50,7 @@ jobs:

repository:
name: "Repository"
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/workflows/repository.yaml@main
permissions:
# Required for action that creates labels: github-labels
Expand All @@ -67,15 +70,19 @@ jobs:
id-token: write
# Required for attestations
attestations: write
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: "Build Python project"
id: python-project
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/actions/python-project-build@main
with:
build_tag: ${{ needs.repository.outputs.build_tag }}

python-test:
name: "Test"
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/workflows/python-tests.yaml@main
needs:
- python-project
Expand All @@ -90,6 +97,7 @@ jobs:

python-security:
name: "Security"
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/workflows/python-security.yaml@main
needs:
- python-project
Expand All @@ -105,6 +113,7 @@ jobs:
notebooks:
name: "Jupyter notebooks"
if: needs.repository.outputs.jupyter_notebooks == 'true'
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/workflows/jupyter-notebooks.yaml@main
needs:
- repository
Expand All @@ -130,6 +139,7 @@ jobs:
permissions:
contents: write
steps:
# yamllint disable-line rule:line-length
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: "Extract project/repository naming"
Expand All @@ -138,16 +148,19 @@ jobs:
uses: os-climate/osc-github-devops/.github/actions/python-project-name@main

- name: "⬇ Download build artefacts"
# yamllint disable-line rule:line-length
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: ${{ env.python_project_name }}
path: "dist"

- name: "Check project version matches pushed tags"
if: startsWith(github.ref, 'refs/tags/')
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/actions/python-project-version-vs-tag@main

- name: "GitHub Release"
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/actions/github-release-action@main
with:
project_name: ${{ env.python_project_name }}
Expand Down Expand Up @@ -215,6 +228,7 @@ jobs:

pypi-test:
name: "Test"
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/workflows/pypi-publish.yaml@main
needs:
- repository
Expand All @@ -235,7 +249,9 @@ jobs:

pypi:
name: "Release"
# yamllint disable-line rule:line-length
if: startsWith(github.ref, 'refs/tags/') || contains(github.event.head_commit.message, '[release]')
# yamllint disable-line rule:line-length
uses: os-climate/osc-github-devops/.github/workflows/pypi-publish.yaml@main
needs:
- repository
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[project]
name = "osc-github-devops"
# Also bump the version string in file .github/workflows/actions.yaml
version = "v0.1.12"
version = "v0.1.13"
# Uncomment to enable dynamic versioning
# dynamic = [ "version" ]
description = "Python project metadata to permit workflow testing."
Expand Down

0 comments on commit 13899a4

Please sign in to comment.