-
Notifications
You must be signed in to change notification settings - Fork 88
67 lines (56 loc) · 1.77 KB
/
ci-windows.yaml
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
60
61
62
63
64
65
66
67
name: Windows CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Conda
uses: conda-incubator/[email protected]
with:
channels: conda-forge
miniforge-version: latest
python-version: ${{ matrix.python-version }}
- name: Set up `env`
shell: "bash -l {0}"
run: >
conda create -n env
c-compiler cxx-compiler
python=${{matrix.python-version}} wheel pip
- name: Show info about `env` environment
shell: "bash -l {0}"
run: |
conda list --show-channel-urls -n env
- name: Install numcodecs
shell: "bash -l {0}"
run: |
conda activate env
python -m pip install -v -e .[test,test_extras,msgpack,zfpy,pcodec]
- name: List installed packages
shell: "bash -l {0}"
run: |
conda activate env
python -m pip list
- name: Run tests
shell: "bash -l {0}"
run: |
conda activate env
pytest -v
- uses: codecov/codecov-action@v3
with:
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
#files: ./coverage1.xml,./coverage2.xml # optional
#flags: unittests # optional
#name: codecov-umbrella # optional
#fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)