-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (35 loc) · 1.39 KB
/
verify_published.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Verify Published Package
# Verifies that the published webknossos package on PyPi.org can be installed and imported
# across different Python versions. Tests both basic installation and "all" optional
# dependencies. Runs nightly to ensure consistent package availability.
on:
schedule:
- cron: '0 0 * * *' # Run every night at midnight
workflow_dispatch: # Allow manual trigger
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 ${{ 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; import imagecodecs; import pandas;"
fi