Skip to content

Commit

Permalink
Add an sdist job to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Nov 11, 2022
1 parent 814245d commit 3aad003
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,27 @@ on:

jobs:

# test that we can generate a software distribution and install it
# thus avoid missing file issues after packaging.
sdist-linux:
name: 'sdist'
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Build sdist
run: python setup.py sdist --formats=zip

- name: Install sdist from .zips
run: python -m pip install dist/*.zip

testing:
name: 'install + test-suite'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3aad003

Please sign in to comment.