-
Notifications
You must be signed in to change notification settings - Fork 30
63 lines (60 loc) · 1.47 KB
/
ubuntu.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
62
63
name: Python on Ubuntu
on:
pull_request:
push:
branches: [master]
schedule:
- cron: '43 6 * * 1'
jobs:
ubuntu_builtin:
runs-on: ubuntu-latest
strategy:
matrix:
container: ["ubuntu:18.04", "ubuntu:20.04"]
container:
image: ${{ matrix.container }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
libffi-dev \
python3 \
python3-dev \
python3-pip \
python3-pytest \
python3-setuptools \
automake \
autoconf \
libtool
- name: Build
run: BUILD_LIB=1 pip3 install .
- name: Test
run: py.test-3
ubuntu_system:
runs-on: ubuntu-latest
strategy:
matrix:
container: ["ubuntu:18.04", "ubuntu:20.04"]
container:
image: ${{ matrix.container }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
libffi-dev \
python3 \
python3-dev \
python3-pip \
python3-pytest \
python3-setuptools \
libfuzzy-dev
- name: Build
run: BUILD_LIB=0 pip3 install .
- name: Test
run: py.test-3