File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 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+ runs-on : ubuntu-latest
15+ name : test with specific asv_runner
16+ runs-on : ${{ matrix.os }}
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ os : ["ubuntu-latest"]
21+ python-version : ["3.10", "pypy-3.9"]
22+ steps :
23+ - name : Set up Python version ${{ matrix.python-version }}
24+ uses : actions/setup-python@v4
25+ with :
26+ python-version : ${{ matrix.python-version }}
27+ cache : pip
28+ cache-dependency-path : pyproject.toml
29+ - name : Checkout
30+ uses : actions/checkout@v3
31+ with :
32+ path : asv_runner
33+ fetch-depth : 0
34+ - name : Checkout tools repo
35+ uses : actions/checkout@v3
36+ with :
37+ repository : airspeed-velocity/asv
38+ path : asv
39+ fetch-depth : 0
40+ - name : Install asv
41+ run : cd asv/ && pip install .
42+ - name : Run asv
43+ run : cd asv/ && pip install .
44+ - name : Run tests with the current asv_runner
45+ run : |
46+ cd asv/
47+ ASV_RUNNER="$(pwd)/../asv_runner" python -m pytest -v --timeout=300 --durations=100 test
You can’t perform that action at this time.
0 commit comments