From 75aad9b8cfce20c93f5938e606ec65af59096f3a Mon Sep 17 00:00:00 2001 From: Arkadii Yakovets Date: Mon, 10 Apr 2023 09:54:40 -0700 Subject: [PATCH] Add distribution build tests. (#1085) --- .github/workflows/ci-cd.yml | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 495b51f4d..55f95b17a 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -50,6 +50,24 @@ jobs: COVERALLS_FLAG_NAME: tests-${{ matrix.python-version }}-${{ matrix.os }} COVERALLS_PARALLEL: true + build: + name: Build Distribution + needs: [test] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set Up Python + uses: actions/setup-python@v4.5.0 + with: + python-version: '3.11' + - name: Install Dependencies + run: | + python -m pip install --upgrade build pip polib + pip install --upgrade . + - name: Build Distribution + run: | + make package + coveralls: name: Finish Coveralls needs: [test] @@ -64,23 +82,11 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} deploy: + name: Deploy runs-on: ubuntu-latest if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') - needs: [test] + needs: [build] steps: - - uses: actions/checkout@v3 - - name: Set Up Python - uses: actions/setup-python@v4.5.0 - with: - python-version: '3.11' - - name: Install Dependencies - run: | - python -m pip install --upgrade build pip polib - pip install --upgrade . - - name: Build Distribution - run: | - make package - - name: Publish Package uses: pypa/gh-action-pypi-publish@v1.8.5 with: