Skip to content

Commit

Permalink
Add distribution build tests. (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r authored Apr 10, 2023
1 parent 734e97a commit 75aad9b
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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]
Expand All @@ -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/[email protected]
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/[email protected]
with:
Expand Down

0 comments on commit 75aad9b

Please sign in to comment.