Skip to content

Commit 8849136

Browse files
committed
TST: Add a direct ASV test
1 parent a5c01e4 commit 8849136

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/test_asv.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: test_asv
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
test_asv:
14+
name: test with specific asv_runner
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: ["ubuntu-latest"]
20+
python-version: ["3.10", "pypy-3.9"]
21+
steps:
22+
- name: Set up Python version ${{ matrix.python-version }}
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
cache: pip
27+
cache-dependency-path: pyproject.toml
28+
- name: Checkout
29+
uses: actions/checkout@v3
30+
with:
31+
path: asv_runner
32+
fetch-depth: 0
33+
- name: Checkout tools repo
34+
uses: actions/checkout@v3
35+
with:
36+
repository: airspeed-velocity/asv
37+
path: asv
38+
fetch-depth: 0
39+
- name: Install asv
40+
run: cd asv/ && pip install .
41+
- name: Run asv
42+
run: cd asv/ && pip install .
43+
- name: Run tests with the current asv_runner
44+
run: |
45+
cd asv/
46+
ASV_RUNNER="$(pwd)/../asv_runner" python -m pytest -v --timeout=300 --durations=100 test

.github/workflows/trigger_asv.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ jobs:
3030
ref: master
3131
wait_workflow: true
3232
client_payload: '{"pr_number": "${{ github.event.client_payload.slash_command.args.named.pr_number }}"}'
33-

0 commit comments

Comments
 (0)