summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoris Roovers <joris.roovers@gmail.com>2023-01-24 10:23:42 +0100
committerGitHub <noreply@github.com>2023-01-24 10:23:42 +0100
commitba3fe26337fd616b8792391ba1069edfef3d3b81 (patch)
treecf6d22eecba4257bcc75f4134d520becc35da0a0
parentc0fccb69be335b1c519f38cbbf553a065aa81d37 (diff)
GHA: Call test-release after publish-release workflow (#420)
Automatically run integration tests on newly released packages.
-rw-r--r--.github/workflows/publish-release.yml17
-rw-r--r--.github/workflows/test-release.yml17
2 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml
index 60f16de..64d776a 100644
--- a/.github/workflows/publish-release.yml
+++ b/.github/workflows/publish-release.yml
@@ -72,3 +72,20 @@ jobs:
HATCH_INDEX_USER: ${{ secrets.TEST_PYPI_GITLINT_USERNAME }}
HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_GITLINT_PASSWORD }}
if: inputs.pypi_target == 'test.pypi.org' && inputs.repo_release_ref == 'main'
+
+ check_env:
+ needs:
+ - publish
+ steps:
+ - name: Print SETUPTOOLS_SCM_PRETEND_VERSION
+ run: |
+ echo "$SETUPTOOLS_SCM_PRETEND_VERSION"
+
+ test_release:
+ needs:
+ - publish
+ uses: jorisroovers/gitlint/.github/workflows/test-release.yml@main
+ with:
+ gitlint_version: "0.19.0.dev51"
+ pypi_source: ${{ inputs.pypi_target }}
+ repo_test_ref: ${{ inputs.repo_release_ref }}
diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml
index 7cbada2..f484f77 100644
--- a/.github/workflows/test-release.yml
+++ b/.github/workflows/test-release.yml
@@ -1,6 +1,23 @@
name: Test Release
run-name: "Test Release (${{ inputs.gitlint_version }}, pypi_source=${{ inputs.pypi_source }}, repo_test_ref=${{ inputs.repo_test_ref }})"
on:
+ workflow_call:
+ inputs:
+ gitlint_version:
+ description: "Gitlint version to test"
+ required: true
+ default: "0.18.0"
+ pypi_source:
+ description: "PyPI repository to use"
+ required: true
+ type: choice
+ options:
+ - "pypi.org"
+ - "test.pypi.org"
+ default: "pypi.org"
+ repo_test_ref:
+ description: "Git reference to checkout for integration tests"
+ default: "main"
workflow_dispatch:
inputs:
gitlint_version: