Skip to content

Commit 2c4d6b4

Browse files
mab-happtiqFattouh92
andauthoredNov 19, 2024··
fix CICD to publish always to TestPypi and always test first (#14)
* fix CICD to publish always to TestPypi and always test first * omit local version so pypi dev publish works --------- Co-authored-by: mab <mohamedtamer92@gmail.com>
1 parent ca0fa07 commit 2c4d6b4

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
 

‎.github/workflows/publish_pypi.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
build:
3131
name: Build distribution 📦
3232
runs-on: ubuntu-latest
33+
needs:
34+
- test
3335
strategy:
3436
matrix:
3537
package: ["happtiq_commons_gen_ai", "happtiq_commons_google_cloud"]
@@ -57,7 +59,7 @@ jobs:
5759

5860
publish-to-pypi:
5961
name: Publish Python 🐍 distribution 📦 to PyPI
60-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
62+
if: startsWith(github.ref, 'refs/tags/')
6163
needs:
6264
- build
6365
runs-on: ubuntu-latest
@@ -112,7 +114,6 @@ jobs:
112114
113115
publish-to-testpypi:
114116
name: Publish Python 🐍 distribution 📦 to TestPyPI
115-
if: startsWith(github.ref, 'refs/tags/')
116117
needs:
117118
- build
118119
runs-on: ubuntu-latest

‎packages/happtiq_commons_gen_ai/pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ dev = [
2020

2121
[tool.setuptools_scm]
2222
root = "../.."
23+
local_scheme = "no-local-version"

‎packages/happtiq_commons_google_cloud/pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ dev = [
2525

2626
[tool.setuptools_scm]
2727
root = "../.."
28+
local_scheme = "no-local-version"

0 commit comments

Comments
 (0)
Please sign in to comment.