@@ -11,12 +11,11 @@ jobs:
1111 python-version : [3.7, 3.8]
1212
1313 steps :
14- - uses : actions/checkout@v1
14+ - uses : actions/checkout@v2
1515 - name : Set up Python ${{ matrix.python-version }}
16- uses : actions/setup-python@v1
16+ uses : actions/setup-python@v2
1717 with :
1818 python-version : ${{ matrix.python-version }}
19- architecture : ' x64'
2019
2120 - name : Install dependencies
2221 run : |
3938 - name : Python tests
4039 run : poetry run pytest tests
4140
42- - name : Test tiff cubing
43- run : tests/scripts/tiff_cubing.sh
44-
45- - name : Test tile cubing
46- run : tests/scripts/tile_cubing.sh
47-
48- - name : Test simple tiff cubing
49- run : tests/scripts/simple_tiff_cubing.sh
50-
51- - name : Test simple tiff cubing (no compression)
52- run : tests/scripts/simple_tiff_cubing_no_compression.sh
53-
54- - name : Test metadata generation
55- run : tests/scripts/meta_generation.sh
56-
57- - name : Test KNOSSOS conversion
58- run : tests/scripts/knossos_conversion.sh
59-
60- - name : Decompress reference magnification data
61- run : |
62- mkdir -p testdata/tiff_mag_2_reference
63- tar -xzvf testdata/tiff_mag_2_reference.tar.gz -C testdata/tiff_mag_2_reference
64-
65- - name : Test downsampling
66- run : tests/scripts/downsampling.sh
67-
68- - name : Test upsampling
69- run : tests/scripts/upsampling.sh
70-
71- - name : Test anisotropic downsampling
72- run : tests/scripts/anisotropic_downsampling.sh
73-
74- - name : Test compression and verification
75- run : tests/scripts/compression_and_verification.sh
76-
77- - name : Test in-place compression
78- run : tests/scripts/in_place_compression.sh
79-
80- - name : Remove reference magnification data
81- run : rm -r testdata/tiff_mag_2_reference/
41+ - name : CLI tests
42+ run : tests/scripts/all_tests.sh
8243
8344 - name : Generate Docs
8445 if : matrix.python-version == '3.8'
@@ -112,18 +73,79 @@ jobs:
11273 [[ -z $(git status -s) ]]
11374
11475 - name : Publish python package
115- if : startsWith(github.event.ref, 'refs/tags') && matrix.python-version == '3.7 '
76+ if : startsWith(github.event.ref, 'refs/tags') && matrix.python-version == '3.8 '
11677 env :
11778 PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }}
11879 PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
11980 run : ./publish.sh
12081
82+ build_win :
83+ # Caution! The Windows VM seems to be running out of storage rather quickly.
84+ runs-on : windows-latest
85+ strategy :
86+ max-parallel : 4
87+ matrix :
88+ python-version : [3.7, 3.8]
89+
90+ steps :
91+ - uses : actions/checkout@v2
92+ - name : Set up Python ${{ matrix.python-version }}
93+ uses : actions/setup-python@v2
94+ with :
95+ python-version : ${{ matrix.python-version }}
96+
97+ - name : Install dependencies
98+ shell : bash
99+ run : |
100+ pip install poetry
101+ poetry install
102+
103+ - name : Decompress test data
104+ shell : bash
105+ run : tar -xzvf testdata/WT1_wkw.tar.gz
106+
107+ - name : Python tests
108+ shell : bash
109+ run : poetry run pytest tests
110+
111+ - name : CLI tests
112+ shell : bash
113+ run : tests/scripts/all_tests.sh
114+
115+ build_mac :
116+ runs-on : macos-latest
117+ strategy :
118+ max-parallel : 4
119+ matrix :
120+ python-version : [3.7, 3.8]
121+
122+ steps :
123+ - uses : actions/checkout@v2
124+ - name : Set up Python ${{ matrix.python-version }}
125+ uses : actions/setup-python@v2
126+ with :
127+ python-version : ${{ matrix.python-version }}
128+
129+ - name : Install dependencies
130+ run : |
131+ pip install poetry
132+ poetry install
133+
134+ - name : Decompress test data
135+ run : tar -xzvf testdata/WT1_wkw.tar.gz
136+
137+ - name : Python tests
138+ run : poetry run pytest tests
139+
140+ - name : CLI tests
141+ run : tests/scripts/all_tests.sh
142+
121143 docker :
122- needs : build
144+ needs : [ build, build_win, build_mac]
123145 runs-on : ubuntu-latest
124146
125147 steps :
126- - uses : actions/checkout@v1
148+ - uses : actions/checkout@v2
127149 - name : Build docker image
128150 run : docker build -t scalableminds/webknossos-cuber:$GITHUB_SHA .
129151
0 commit comments