Skip to content

Commit

Permalink
✨ feature: update Python version in CI workflow and enhance semantic …
Browse files Browse the repository at this point in the history
…release configuration
  • Loading branch information
jedzill4 committed Jan 25, 2025
1 parent de7a81a commit a5812df
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
python-version: "3.10"

- name: Configure Git User
run: |
Expand All @@ -37,11 +37,10 @@ jobs:
- name: Run Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYTHON_TOKEN: ${{ secrets.PYPI_TOKEN }} # Optional if uploading to PyPI
run: semantic-release publish

- name: Force Push Updated Tag (if required)
if: ${{ github.ref_name == 'feature/semantic-release' }}
if: ${{ github.ref_name == 'feature/gh-actions' || github.ref_name == 'main' }}
run: |
latest_tag=$(git describe --tags --abbrev=0)
git tag -f "$latest_tag"
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ dependencies = [
"alembic==1.13.3",
"tenacity==9.0.0",
"python-dotenv==1.0.1",
"python-semantic-release>=9.16.1",
]


Expand Down Expand Up @@ -166,9 +167,18 @@ commit_parser = "emoji" # Use Gitmoji for commit parsing
changelog_file = "CHANGELOG.md" # Optional changelog generation
upload_to_pypi = false


[tool.semantic_release.hooks]
post_version = "hooks.semantic_hooks:post_version"

[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease = false

[tool.semantic_release.branches."feature/gh-actions"]
match = "feature/gh-actions"
prerelease = true
prerelease_token = "test"

#######################################################################################
# Pylint configuration
Expand Down
4 changes: 3 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a5812df

Please sign in to comment.