File tree Expand file tree Collapse file tree 3 files changed +56
-2
lines changed Expand file tree Collapse file tree 3 files changed +56
-2
lines changed Original file line number Diff line number Diff line change 10
10
jobs :
11
11
build :
12
12
name : Build
13
- runs-on : ubuntu-latest
13
+ runs-on : ubuntu-20.04
14
14
15
15
steps :
16
16
- name : Checkout repository.
Original file line number Diff line number Diff line change 13
13
jobs :
14
14
build_wheels_for_macos :
15
15
name : Build and publish wheels for macOS
16
- runs-on : macos-latest
16
+ runs-on : macos-12
17
17
18
18
strategy :
19
19
matrix :
Original file line number Diff line number Diff line change
1
+ name : Build and run tests
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ci-pytest
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build_and_test :
13
+ strategy :
14
+ matrix :
15
+ os : [ ubuntu-20.04, macos-12, windows-2019 ]
16
+
17
+ runs-on : ${{matrix.os}}
18
+ continue-on-error : true
19
+
20
+ steps :
21
+ - name : Checkout repository.
22
+ uses : actions/checkout@v2
23
+ with :
24
+ submodules : recursive
25
+
26
+ - name : Move repository to disk C.
27
+ if : matrix.os == 'windows-2019'
28
+ run : xcopy . C:\src\ /E/H
29
+
30
+ - name : Setup Python.
31
+ uses : actions/setup-python@v2
32
+ with :
33
+ python-version : 3.9
34
+
35
+ - name : Build and install package.
36
+ if : matrix.os == 'ubuntu-20.04'
37
+ run : |
38
+ python setup.py install
39
+ sudo apt install -y python3.9-dev
40
+
41
+ - name : Build and install package.
42
+ if : matrix.os == 'macos-12'
43
+ run : python setup.py install
44
+
45
+ - name : Build and install package.
46
+ if : matrix.os == 'windows-2019'
47
+ working-directory : " C:/src"
48
+ run : python setup.py install
49
+
50
+ - name : Install dev dependencies.
51
+ run : pip install -r requirements-dev.txt
52
+
53
+ - name : Run tests.
54
+ run : pytest tests -vv
You can’t perform that action at this time.
0 commit comments