-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.64 KB
/
Copy pathtriggered.yml
File metadata and controls
59 lines (50 loc) · 1.64 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
name: Triggered
on:
workflow_dispatch:
inputs:
pr_number:
description: 'PR Number'
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ASVRunner:
name: test with specific asv_runner
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9", "3.14", "pypy-3.11"]
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
# We need Python 3.9 to always be installed, so tests with
# multiple environments can run.
- name: Set up Python 3.9
uses: actions/setup-python@v6
with:
python-version: 3.9
- name: Set up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v6
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: Install dependencies
run: python -m pip install ".[test,hg,envs]"
- name: Get asv_runner to be tested
uses: actions/checkout@v6
with:
repository: airspeed-velocity/asv_runner
ref: refs/pull/${{ github.event.inputs.pr_number }}/head
path: latest_asv_runner
- name: Install asv
run: pip install .
- name: Run tests with the current asv_runner
run: ASV_RUNNER="$(pwd)/latest_asv_runner" python -m pytest -v --timeout=300 --webdriver=ChromeHeadless --durations=100 test