-
Notifications
You must be signed in to change notification settings - Fork 180
76 lines (61 loc) · 2 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
74
75
76
name: Linux CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7", "3.10", "3.12.0-rc.2", "pypy-3.8", "pypy-3.9"]
r-version: ['release']
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# We need Python 3.7 to always be installed, so tests with
# multiple environments can run.
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Set up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Setup a browser for more tests
uses: browser-actions/setup-chrome@latest
- name: Set up R version ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
- name: Install dependencies (standard)
if: matrix.python-version != '3.12.0-rc.2'
run: python -m pip install ".[test,hg]"
- name: Install dependencies (with --pre)
if: matrix.python-version == '3.12.0-rc.2'
run: python -m pip install ".[test,hg]" --pre
- name: Install asv
run: pip install .
- name: Run tests
run: python -m pytest -v --timeout=300 --webdriver=ChromeHeadless --durations=100 test
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: pip
cache-dependency-path: pyproject.toml
- name: Install asv
run: pip install ".[doc]"
- name: Build docs
run: sphinx-build -W docs/source html