Skip to content

Commit

Permalink
fix: test minor semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaiVenkat committed May 11, 2024
1 parent b74b835 commit 2574cf0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:

- name: Install dependencies
run: |
python -m pip install poetry --upgrade pip
python -m pip install --upgrade pip
python -m pip install poetry
poetry config virtualenvs.create false
poetry lock --no-update
poetry install
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
env:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: poetry run semantic-release publish --post publish_command='poetry publish --repository testpypi'
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Tests with Tox
name: Run Tests

on:
push:
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install poetry
poetry config virtualenvs.create false
poetry lock
poetry lock --no-update
poetry install
- name: Unit tests
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,15 @@ build-backend = "poetry.core.masonry.api"
line-length = 88

[tool.semantic_release]
branch = "main"
branch = "ci/setup-semantic-release"
version_variable = [
"maidr/__init__.py:__version__"
]
upload_to_PyPI = true
upload_to_release = true
build_command = "pip install poetry && poetry build"

[tool.semantic_release.branches."ci/setup-semantic-release"]
match = "ci/setup-semantic-release"
prerelease = true
prerelease_token = "rc"

0 comments on commit 2574cf0

Please sign in to comment.