Implemented modular code structure
Refactored repository into kaya-core and kaya-rsgi packages
This commit is contained in:
@@ -26,14 +26,17 @@ jobs:
|
||||
.venv/bin/pip install -r requirements-dev.txt
|
||||
- name: Unit tests
|
||||
run: |
|
||||
.venv/bin/pip install .
|
||||
.venv/bin/python -m mypy -p src
|
||||
.venv/bin/python -m unittest discover -s tests
|
||||
.venv/bin/pip install packages/kaya-core packages/kaya-rsgi
|
||||
.venv/bin/python -m mypy -p kaya.core
|
||||
.venv/bin/python -m mypy -p kaya.rsgi
|
||||
.venv/bin/python -m unittest discover -s packages/kaya-core/tests
|
||||
.venv/bin/python -m unittest discover -s packages/kaya-rsgi/tests
|
||||
- name: Publish artifacts
|
||||
env:
|
||||
TWINE_REPOSITORY_URL: ${{ vars.PYPI_REGISTRY_URL }}
|
||||
TWINE_USERNAME: ${{ vars.PUBLISHER_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.PUBLISHER_TOKEN }}
|
||||
run: |
|
||||
.venv/bin/pyproject-build
|
||||
.venv/bin/twine upload --repository gitea dist/*.whl dist/*.tar.gz
|
||||
.venv/bin/pyproject-build packages/kaya-core
|
||||
.venv/bin/pyproject-build packages/kaya-rsgi
|
||||
.venv/bin/twine upload --repository gitea packages/kaya-core/dist/*.whl packages/kaya-core/dist/*.tar.gz packages/kaya-rsgi/dist/*.whl packages/kaya-rsgi/dist/*.tar.gz
|
||||
|
||||
Reference in New Issue
Block a user