Fixes Versioning and CI/CD

This commit is contained in:
2024-06-24 01:36:53 -03:00
parent e802c5f201
commit ed3d0977b7
2 changed files with 16 additions and 11 deletions

View File

@@ -25,15 +25,18 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry self add "poetry-dynamic-versioning[plugin]"
if [ -f pyproject.toml ]; then poetry install; fi
- name: Build Cython Code
- name: Build Python Package
run: |
poetry build -f sdist
# - name: Test with unittest
# run: |
# poetry run python -m unittest
- name: Build and Upload Python Package
poetry install
echo "Builded yoshi-seals - $(poetry version)"
- name: Run unittest
run: |
poetry config repositories.pypi https://pypi.org/legacy/
poetry config pypi-token.pypi ${{secrets.PYPI_TOKEN}}
poetry publish --repository pypi
poetry run python -m unittest
- name: Upload Python Package
run: |
poetry config repositories.test-pypi https://test.pypi.org/legacy/
poetry config pypi-token.test-pypi ${{secrets.PYPI_TOKEN}}
poetry publish --repository test-pypi