-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (54 loc) · 1.36 KB
/
rust.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
name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
arch: [x64, arm64]
libc: [gnu, musl]
include:
- os: macos-latest
arch: x64
- os: macos-latest
arch: arm64
- os: windows-latest
arch: x64
libc: gnu
- os: ubuntu-latest
arch: x64
libc: gnu
- os: ubuntu-latest
arch: arm64
libc: gnu
- os: ubuntu-latest
arch: x64
libc: musl
- os: ubuntu-latest
arch: arm64
libc: musl
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
python -m pip install --upgrade pip
pip install -r requirements.txt
else
python3 -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
python -m unittest discover
else
python3 -m unittest discover