Skip to content

Commit

Permalink
Add build test
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDuffield committed Apr 16, 2024
1 parent 1660457 commit e1f2cc3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/publish_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,19 @@ jobs:
pip install build
- name: Build package
run: python -m build
- name: Check sdist install and imports
run: |
mkdir -p test-sdist
cd test-sdist
python -m venv venv-sdist
venv-sdist/bin/python -m pip install ../dist/posteriors-*.tar.gz
venv-sdist/bin/python -c "import posteriors"
- name: Check wheel install and imports
run: |
mkdir -p test-wheel
cd test-wheel
python -m venv venv-wheel
venv-wheel/bin/python -m pip install ../dist/posteriors-*.whl
venv-wheel/bin/python -c "import posteriors"
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit e1f2cc3

Please sign in to comment.