diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml index b19bda7..768c72f 100644 --- a/.github/workflows/publish_to_pypi.yml +++ b/.github/workflows/publish_to_pypi.yml @@ -27,6 +27,33 @@ jobs: name: python-package-distributions path: dist/ + test-installation: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [3.10] + steps: + - uses: actions/checkout@v2 + with: + ref: 'master' + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Create and activate virtual environment + run: | + python -m venv venv + source venv/bin/activate + - name: Install dependencies and QFit + run: | + pip install --upgrade pip + pip install -r requirements.txt + pip install . + - name: Test installation + run: | + python -c "from qfit import Fit; print('Installation successful')" + publish-to-pypi: name: >- Publish Python 🐍 distribution 📦 to PyPI