-
Notifications
You must be signed in to change notification settings - Fork 88
76 lines (64 loc) · 1.96 KB
/
ci-linux.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
68
69
70
71
72
73
74
75
76
name: Linux CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Conda
uses: conda-incubator/[email protected]
with:
channels: conda-forge
python-version: ${{ matrix.python-version }}
- name: Show info about `base` environment
shell: "bash -l {0}"
run: |
conda info
conda config --show-sources
conda list --show-channel-urls
- 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
export DISABLE_NUMCODECS_AVX2=""
python -m pip install -v -e .[test,msgpack,zfpy]
- name: List installed packages
shell: "bash -l {0}"
run: |
conda activate env
python -m pip list
- name: Flake8
shell: "bash -l {0}"
run: |
conda activate env
flake8
- 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)