forked from antocuni/capnpy
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (57 loc) · 1.59 KB
/
Copy pathtest.yml
File metadata and controls
74 lines (57 loc) · 1.59 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: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
CAPNPROTO: capnproto-c++-0.7.0
jobs:
tox_tests:
name: tox -e ${{ matrix.toxenv }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: '2.7'
toxenv: 'py27-test-nopyx'
- python-version: '2.7'
toxenv: 'py27-test'
- python-version: '3.6'
toxenv: 'py36-test'
- python-version: '3.7'
toxenv: 'py37-test'
- python-version: '3.8'
toxenv: 'py38-test'
- python-version: '3.9'
toxenv: 'py39-test'
- python-version: '3.10'
toxenv: 'py310-test'
- python-version: 'pypy-3.7'
toxenv: 'pypy3-test'
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache capnproto
uses: actions/cache@v2
env:
cache-name: cache-capnproto
with:
path: ~/capnproto
key: ${{ env.CAPNPROTO }}-${{ runner.os }}
- name: Install capnproto
run: bash ./ci/install_capnp.sh
- name: pip install
run: |
pip install -U pip # so that we can use wheels
# tox creates the sdist: we need cython to be installed in the env which
# creates the sdist, to generate the .c files
pip install tox cython>=0.29.21
- name: Run tox
run: tox -e ${{ matrix.toxenv }}