-
Notifications
You must be signed in to change notification settings - Fork 111
61 lines (58 loc) · 1.56 KB
/
test.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
60
61
name: Unit tests
on:
push:
branches:
-dev
-main
-master
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
python-version: "3.7"
numpy-version: 1.21.4
- os: ubuntu-latest
python-version: "3.8"
numpy-version: 1.21.4
- os: ubuntu-latest
python-version: "3.9"
numpy-version: 1.21.4
- os: ubuntu-latest
python-version: "3.10"
numpy-version: 1.22.4
- os: ubuntu-latest
python-version: "3.11"
numpy-version: 1.25.2
- os: windows-latest
python-version: "3.11"
numpy-version: 1.25.2
- os: macos-latest
python-version: "3.10"
numpy-version: 1.25.2
defaults:
run:
shell: bash -l {0}
steps:
- name: Git clone
uses: actions/checkout@v2
- name: Set up virtual environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: environment.ci.yml
channels: defaults, conda-forge
miniconda-version: "latest"
- name: Install numpy
run: conda install numpy=${{ matrix.numpy-version }}
- name: Check linting
run: make lint
- name: Check static typing
run: make type-check
- name: Test with pytest
run: make coverage
- name: Code coverage
run: codecov