forked from github.com/blag
fix workflow
This commit is contained in:
@@ -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/*
|
||||||
|
|||||||
Reference in New Issue
Block a user