-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (48 loc) · 1.34 KB
/
buildntest.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
name: carchivetools
on: [push, pull_request]
jobs:
native:
name: ${{ matrix.os }}/${{ matrix.py }}/${{ matrix.prof }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
py: 2.7
prof: latest
# doctests and others aren't ported
test: false
- os: ubuntu-latest
py: 3.7
prof: latest
test: true
- os: ubuntu-latest
py: 3.8
prof: latest
test: true
- os: ubuntu-latest
py: 3.9
prof: latest
# some bizarre in carchive.test.test_util.TestBLP.test_short
test: false
steps:
- uses: actions/checkout@v2
- name: "apt-get install"
run: |
sudo apt-get update
sudo apt-get -y install protobuf-compiler libprotobuf-dev
- name: Setup native python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py }}
- name: Build
run: |
python -m pip install -r requirements-${{ matrix.prof }}.txt
python setup.py build_protobuf -i
python setup.py build_ext -i
- name: Test
if: matrix.test
run: |
which trial
PYTHONPATH=$PWD TZ=US/Eastern trial carchive