1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-26 05:02:58 +00:00

fix workflow

This commit is contained in:
2024-10-26 01:04:21 -07:00
parent 243f889725
commit 636f635fea

View File

@@ -9,8 +9,7 @@ on:
jobs: jobs:
test: job1:
name: Test Python 3.11 on Ubuntu
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -21,47 +20,19 @@ jobs:
- run: | - run: |
make venv 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: | - run: |
make lint make lint
- run: | - run: |
make mypy make mypy
- run: |
make test
- run: | - run: |
make test-release make test-release
- -
name: Upload to PyPI name: Push to docker pypi registry.
env: env:
TWINE_USERNAME: ${{ secrets.REGISTRY_USERNAME }} TWINE_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
TWINE_PASSWORD: ${{ secrets.REGISTRY_TOKEN }} TWINE_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
TWINE_REPOSITORY_URL: "https://gitea.raer.me/api/packages/freyjagp/pypi" TWINE_REPOSITORY_URL: "https://gitea.raer.me/api/packages/freyjagp/pypi"
run: | run: |
pipenv run python3 -m twine upload --verbose dist/* python3 -m twine upload --verbose dist/*