Skip to content

Commit 708bbef

Browse files
committed
Test on windows using gh action
This seem to be much faster than appveyor
1 parent aa786cb commit 708bbef

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/windows-testing.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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 -rrequirements_dev_minimal.txt numpy${{ matrix.numpy_version}} -rrequirements_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+

0 commit comments

Comments
 (0)