File tree Expand file tree Collapse file tree 2 files changed +58
-1
lines changed Expand file tree Collapse file tree 2 files changed +58
-1
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
+
4
+ name : Python package
5
+
6
+ on :
7
+ push :
8
+ branches : [ master ]
9
+ pull_request :
10
+ branches : [ master ]
11
+
12
+ jobs :
13
+ windows :
14
+ name : Windows Tests
15
+ runs-on : " windows-latest"
16
+ strategy :
17
+ fail-fast : True
18
+ matrix :
19
+ python-version : ["3.8"]
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+ with :
23
+ fetch-depth : 0
24
+ - uses : conda-incubator/setup-miniconda@v2
25
+ with :
26
+ auto-update-conda : true
27
+ python-version : ${{ matrix.python-version }}
28
+ channels : conda-forge
29
+ env :
30
+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
31
+ - name : Create Conda environment with the rights deps
32
+ shell : bash -l {0}
33
+ run : |
34
+ conda create -n zarr-env python==${{matrix.python-version}} numcodecs==0.6.4 pip
35
+ - name : Install dependencies
36
+ shell : bash -l {0}
37
+ run : |
38
+ conda activate zarr-env
39
+ python -m pip install --upgrade pip
40
+ python -m pip install -U pip setuptools wheel
41
+ python -m pip install -r requirements_dev_numpy.txt -r requirements_dev_minimal.txt -r requirements_dev_optional.txt
42
+ python -m pip install -e .
43
+ python -m pip freeze
44
+ - name : Run Tests
45
+ shell : bash -l {0}
46
+ run : |
47
+ conda activate zarr-env
48
+ pytest
49
+ - name : Conda info
50
+ shell : bash -l {0}
51
+ run : conda info
52
+ - name : Conda list
53
+ shell : pwsh
54
+ run : conda list
55
+
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ environment:
17
17
ZARR_TEST_ABS : 1
18
18
19
19
matrix :
20
-
21
20
- PYTHON : " C:\\ Python36-x64"
22
21
PYTHON_VERSION : " 3.6"
23
22
@@ -45,3 +44,6 @@ test_script:
45
44
46
45
after_test :
47
46
- ' "%EMULATOR_LOC%" stop'
47
+
48
+ matrix :
49
+ fast_finish : true
You can’t perform that action at this time.
0 commit comments