forked from circus-tent/circus
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (58 loc) · 1.73 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
65
66
67
68
69
70
71
72
73
name: ci
on:
push:
branches:
- master
- dev/*
pull_request:
branches:
- master
jobs:
ubuntu:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9', 'pypy-3.10']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
sudo apt update
sudo apt install libev-dev libevent-dev
sudo apt install gcc make libffi-dev pkg-config zlib1g-dev libbz2-dev libsqlite3-dev libncurses5-dev libexpat1-dev libssl-dev libgdbm-dev tk-dev libgc-dev python3-cffi liblzma-dev libncursesw5-dev
sudo ldconfig
- name: Install test dependencies
run: pip install tox coveralls
- name: Run test suite
run: tox -v -e py
multi-os:
# Run tests for one python version on different operating systems
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: ['macos-latest']
skip-tests: [false]
include:
- os: windows-latest
skip-tests: true
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install test dependencies
run: |
pip install tox coveralls
- name: Run test suite
shell: bash -l {0}
run: tox -v -e py
continue-on-error: ${{ matrix.skip-tests }}