Improve name, stages in Github Workflows for Publish and Test

This commit is contained in:
Debanjum Singh Solanky 2022-08-03 22:37:16 +03:00
parent f55eaf0a53
commit 7a353066dd
2 changed files with 12 additions and 6 deletions

View file

@ -20,21 +20,24 @@ jobs:
with:
python-version: '3.10'
- name: Install Python Dependencies
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Install Application
run: |
pip install --upgrade .
- name: Build Application
- name: Build, Check App to Publish
run: |
rm -rf dist
python -m build
twine check dist/*
- name: Publish App to Test PyPI
- name: Publish App to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_KEY }}
run: |
twine check dist/*
twine upload -r testpypi dist/*

View file

@ -32,12 +32,15 @@ jobs:
with:
python-version: '3.10'
- name: Install Python Dependencies
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Install Application
run: |
pip install --upgrade .
- name: Test with pytest
- name: Test Application
run: |
pytest