Skip to content

Commit 26e588a

Browse files
authored
Add GA workflow to verify the wk package installation (#1214)
* add a GA workflow to verify the wk package installation * fix wk version lookup
1 parent b4b8051 commit 26e588a

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

.github/workflows/verify_published.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,31 @@ on:
1212
jobs:
1313
verify-published:
1414
runs-on: ubuntu-latest
15-
15+
strategy:
16+
matrix:
17+
python-version: ["3.12", "3.11", "3.10", "3.9"]
18+
extras: ["", "[all]"]
1619
steps:
17-
- name: Set up Python
20+
- name: Set up Python ${{ matrix.python-version }}
1821
uses: actions/setup-python@v4
19-
22+
with:
23+
python-version: ${{ matrix.python-version }}
2024

21-
25+
- name: Create virtual environment
26+
run: |
27+
python -m venv .venv
28+
source .venv/bin/activate
29+
30+
- name: Install webknossos
31+
run: |
32+
python -m pip install --upgrade pip
33+
python -m pip install webknossos${{ matrix.extras }}
34+
35+
- name: Verify installation
36+
run: |
37+
python -c "import webknossos; from webknossos import version; print(f'webknossos version: {version.__version__}')"
38+
39+
if [ "${{ matrix.extras }}" = "[all]" ]; then
40+
# Verify some of the optional dependencies are available
41+
python -c "import tifffile; from pylibCZIrw import czi;"
42+
fi

0 commit comments

Comments
 (0)