-
Notifications
You must be signed in to change notification settings - Fork 188
37 lines (35 loc) · 1015 Bytes
/
tests.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
name: Tests
on: push
jobs:
tests:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["2.7", "3.5", "3.10"]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- run: sudo apt-get update && sudo apt-get install -y libev-dev
if: matrix.os == 'ubuntu-latest'
- run: brew install libev
if: matrix.os == 'macos-latest'
- name: Build
run: |
python setup.py install
cd /tmp
python -c "import bjoern"
shell: bash -ex {0}
- name: Run tests
run: |
pip install requests
python tests/interrupt-during-request.py
python tests/keep-alive-behaviour.py
python tests/test_wsgi_compliance.py
python tests/expect100.py
shell: bash -ex {0}