Skip to content

Commit

Permalink
Add pypi post-publish pip install smoke test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rbaltrusch committed Jun 22, 2024
1 parent 8da0fd3 commit 2d5e83e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pip-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check pip install

on:
workflow_run:
workflows: ['Upload Python Package']
types: [completed]

env:
PACKAGE_NAME: music_mood_analysis

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pypi package
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install $PACKAGE_NAME
python -m $PACKAGE_NAME -h

0 comments on commit 2d5e83e

Please sign in to comment.