Files
blag/.gitea/workflows/python-package.yaml

68 lines
1.3 KiB
YAML

name: CI/CD Pipeline
on:
push:
branches:
- main
tags:
- "v**"
jobs:
test:
name: Test Python 3.11 on Ubuntu
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/actions/setup-python@v5
with:
python-version: "3.11"
- run: |
make venv
- run: |
make test
lint:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/actions/setup-python@v5
with:
python-version: "3.11"
- run: |
make venv
- run: |
make lint
mypy:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/actions/setup-python@v5
with:
python-version: "3.11"
- run: |
make venv
- run: |
make test
- run: |
make lint
- run: |
make mypy
- run: |
make test-release
-
name: Upload to PyPI
env:
TWINE_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
TWINE_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
TWINE_REPOSITORY_URL: "https://gitea.raer.me/api/packages/freyjagp/pypi"
run: |
pipenv run python3 -m twine upload --verbose dist/*