Add gitea workflow to test and upload package
Some checks failed
Upload Package / test and upload package (push) Failing after 50s
Some checks failed
Upload Package / test and upload package (push) Failing after 50s
This commit is contained in:
parent
98daa460a6
commit
bc38dca7dc
25
.gitea/workflows/upload-package.yaml
Normal file
25
.gitea/workflows/upload-package.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: Upload Package
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test and upload package:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: catthehacker/ubuntu:act-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: 3.11
|
||||||
|
cache: pip
|
||||||
|
- run: pip install -r requirements.txt -r test-requirements.txt twine
|
||||||
|
- run: pytest --cov=openapi_client_udm
|
||||||
|
|
||||||
|
- run: python3 -m build
|
||||||
|
- run: python3 -m twine upload dist/*
|
||||||
|
env:
|
||||||
|
TWINE_REPOSITORY_URL: "${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/pypi"
|
||||||
|
TWINE_USERNAME: "${{ secrets.PACKAGE_REPO_USERNAME }}"
|
||||||
|
TWINE_PASSWORD: "${{ secrets.PACKAGE_REPO_PASSWORD }}"
|
Loading…
Reference in New Issue
Block a user