-
Notifications
You must be signed in to change notification settings - Fork 37
64 lines (59 loc) · 1.33 KB
/
ci.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
64
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
tox:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version:
- 3.7
- 3.8
- 3.9
- "3.10"
- "3.11"
- pypy-3.9
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: |
python -m pip install --upgrade pip setuptools
pip install --upgrade tox tox-gh-actions
- name: Initialize tox envs
run: |
tox --parallel auto --notest
- name: Test with tox
run: |
tox --parallel 0
- uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
autobahn:
runs-on: ubuntu-latest
strategy:
matrix:
side: [client, server]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install tox
run: |
python -m pip install --upgrade pip setuptools
pip install --upgrade tox
- name: Initialize tox envs
run: |
tox --parallel auto --notest -e autobahn
- name: Run autobahn
run: |
tox --parallel 0 -e autobahn
env:
SIDE: ${{ matrix.side }}