added retry decorators
All checks were successful
CI / build (push) Successful in 13s

This commit is contained in:
2024-06-22 20:35:37 +08:00
parent 514962d9e3
commit d62265090d
6 changed files with 171 additions and 5 deletions

View File

@@ -11,13 +11,19 @@ jobs:
- uses: actions/setup-python@v5
with:
cache: 'pip'
- name: Create virtualenv
run: |
python -m venv .venv
.venv/bin/pip install -r requirements.txt
- name: Run unit tests
run: .venv/bin/python -m unittest discover -s tests
- name: Execute build
run: |
.venv/bin/python -m build
- name: Publish artifacts
env:
TWINE_REPOSITORY_URL: ${{ vars.PYPI_REGISTRY_URL }}
TWINE_USERNAME: ${{ vars.PUBLISHER_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PUBLISHER_TOKEN }}
run: |
python -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/python -m build
.venv/bin/python -m twine upload --repository gitea dist/*{.whl,tar.gz}
.venv/bin/python -m twine upload --repository gitea dist/*{.whl,tar.gz}