Skip to content

Hotfix

Hotfix #231

Workflow file for this run

name: Test and Lint
on: pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8, 3.9, 3.10]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .[test] --verbose
- name: Test with pytest
run: |
pytest aicssegmentation/tests/
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .[test] --verbose
- name: Lint with flake8
run: |
flake8 aicssegmentation --count --verbose --show-source --statistics
- name: Check with black
run: |
black --check aicssegmentation