Skip to content

Merge branch 'main' into thumbnails-hf-models #2180

Merge branch 'main' into thumbnails-hf-models

Merge branch 'main' into thumbnails-hf-models #2180

Workflow file for this run

name: scivision
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
python-version: ['3.8', '3.9', '3.10']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Show python version
run: python --version
- name:
Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install scikit-image
pip install tensorflow
pip install xarray
- name: Run Flake8
run: |
flake8
- name: Run tests
run: |
pip install -e .
pip install pytest
pytest
all-builds-passing:
if: always()
runs-on: ubuntu-latest
needs: build
steps:
- name: Check all build jobs succeeded
run: |
result="${{ needs.build.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
exit 1
fi