Skip to content

Commit

Permalink
Add GA workflow to verify the wk package installation (#1214)
Browse files Browse the repository at this point in the history
* add a GA workflow to verify the wk package installation

* fix wk version lookup
  • Loading branch information
hotzenklotz authored Nov 22, 2024
1 parent b4b8051 commit 26e588a
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/verify_published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,31 @@ on:
jobs:
verify-published:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.12", "3.11", "3.10", "3.9"]
extras: ["", "[all]"]
steps:
- name: Set up Python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4

with:
python-version: ${{ matrix.python-version }}


- name: Create virtual environment
run: |
python -m venv .venv
source .venv/bin/activate
- name: Install webknossos
run: |
python -m pip install --upgrade pip
python -m pip install webknossos${{ matrix.extras }}
- name: Verify installation
run: |
python -c "import webknossos; from webknossos import version; print(f'webknossos version: {version.__version__}')"
if [ "${{ matrix.extras }}" = "[all]" ]; then
# Verify some of the optional dependencies are available
python -c "import tifffile; from pylibCZIrw import czi;"
fi

0 comments on commit 26e588a

Please sign in to comment.