From 7a353066ddf4a25093e71e0e408671f108efd72b Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Wed, 3 Aug 2022 22:37:16 +0300 Subject: [PATCH] Improve name, stages in Github Workflows for Publish and Test --- .github/workflows/publish.yml | 11 +++++++---- .github/workflows/test.yml | 7 +++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e2a123cb..932fcc8c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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/* \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f444fa78..bea538c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file