Skip to content

Commit baeb3d1

Browse files
committed
ci(github-actions): improve CI workflows and rename the project package
- Add a test job to the release workflow and make releases depend on successful tests - Allow the testing workflow to be reused by other workflows via workflow_call - Rename the project package from authgate to go-authgate Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent ea32949 commit baeb3d1

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ on:
55
tags: ["v*"]
66

77
jobs:
8+
test:
9+
uses: ./.github/workflows/testing.yml
10+
811
publish:
12+
needs: test
913
runs-on: ubuntu-latest
1014
permissions:
1115
id-token: write

.github/workflows/testing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main]
66
pull_request:
77
branches: [main]
8+
workflow_call:
89

910
jobs:
1011
test:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "authgate"
6+
name = "go-authgate"
77
dynamic = ["version"]
88
description = "Python SDK for AuthGate — OAuth 2.0 authentication and token management"
99
readme = "README.md"

0 commit comments

Comments
 (0)