-
Notifications
You must be signed in to change notification settings - Fork 40
49 lines (46 loc) · 1.13 KB
/
scivision.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
43
44
45
46
47
48
49
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