Update libCZI and fix shape error #74
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [pull_request] | |
name: Python Build PR | |
jobs: | |
python-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 6 | |
matrix: | |
python-version: [3.8, 3.9, "3.10", 3.11, 3.12] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install aicspylibczi | |
run: | | |
python -m pip install --upgrade pip setuptools | |
pip install .[test] | |
- name: Test with pytest | |
run: | | |
pytest --cov-report xml --cov=aicspylibczi aicspylibczi/tests | |
- name: Build the sdist | |
run: pipx run build --sdist | |
- name: Check install from sdist | |
run: | | |
MY_VERSION=$(python setup.py --version) | |
pip install dist/aicspylibczi-$MY_VERSION.tar.gz | |
shell: bash | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools | |
pip install .[test] | |
- name: Lint with flake8 | |
run: | | |
flake8 aicspylibczi --count --verbose --max-line-length=127 --show-source --statistics |