forked from zarr-developers/zarr-python
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 1.83 KB
/
windows-testing.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
50
51
52
53
54
55
56
57
58
59
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
windows:
name: Windows Tests
runs-on: "windows-latest"
strategy:
fail-fast: True
matrix:
python-version: ["3.8", "3.9"]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Create Conda environment with the rights deps
shell: bash -l {0}
run: |
conda create -n zarr-env python==${{matrix.python-version}} numcodecs pip nodejs
- name: Install dependencies
shell: bash -l {0}
run: |
conda activate zarr-env
python -m pip install --upgrade pip
python -m pip install -U pip setuptools wheel
python -m pip install -r requirements_dev_numpy.txt -r requirements_dev_minimal.txt -r requirements_dev_optional.txt
python -m pip install .
python -m pip freeze
npm install -g azurite
- name: Run Tests
shell: bash -l {0}
run: |
conda activate zarr-env
mkdir ~/blob_emulator
azurite -l ~/blob_emulator --debug debug.log 2>&1 > stdouterr.log &
pytest -sv --timeout=300
env:
ZARR_TEST_ABS: 1
- name: Conda info
shell: bash -l {0}
run: conda info
- name: Conda list
shell: pwsh
run: conda list