Skip to content

Commit

Permalink
Add pip_install step
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
hoxbro committed Dec 14, 2023
1 parent 63d95f9 commit f94ec53
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,26 @@ jobs:
path: dist/
if-no-files-found: error

pip_install:
name: Install PyPI Package
runs-on: 'ubuntu-latest'
needs: [pip_build]
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: actions/download-artifact@v3
with:
name: pip_build
path: dist/
- name: Install package
run: python -m pip install dist/*.whl
- name: Test package
run: python -c "import $PACKAGE"

pip_publish:
name: Publish PyPI Package
runs-on: ubuntu-latest
Expand All @@ -132,7 +152,7 @@ jobs:
waiting_room:
name: Waiting Room
runs-on: ubuntu-latest
needs: [conda_build, pip_build]
needs: [conda_build, pip_install]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
environment:
name: publish
Expand Down

0 comments on commit f94ec53

Please sign in to comment.