This repository was archived by the owner on Sep 16, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
74 lines (61 loc) · 1.71 KB
/
Copy pathpython.yml
File metadata and controls
74 lines (61 loc) · 1.71 KB
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
name: Python
on:
pull_request:
push:
branches:
- main
paths-ignore:
- ".github/**"
- "docs/**"
- "README.rst"
jobs:
test-ubuntu:
name: Build (Python) on Ubuntu
runs-on: ubuntu-20.04
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.4.1
with:
access_token: ${{ github.token }}
- name: Install dependencies
run: sudo apt install -y libopenblas-dev python3.8-dev
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: |
cd python
make test args="-o junit_family=xunit2 --junitxml=report.xml"
- name: Upload test results
uses: actions/upload-artifact@v2
if: always()
with:
name: ubuntu-test-report
path: python/report.xml
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
check_name: Test Report (Python) on Ubuntu
files: python/report.xml
test-macos:
name: Build (Python) on MacOS
runs-on: macos-10.15
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.4.1
with:
access_token: ${{ github.token }}
- name: Install dependencies
run: brew install libomp
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: |
cd python
make test args="-o junit_family=xunit2 --junitxml=report.xml"
- name: Upload test results
uses: actions/upload-artifact@v2
if: always()
with:
name: macos-test-report
path: python/report.xml