Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: Add a direct ASV test #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/test_asv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: test_asv

on:
pull_request:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test_asv:
name: test with specific asv_runner
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10", "pypy-3.9"]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: asv_runner
fetch-depth: 0
- name: Checkout tools repo
uses: actions/checkout@v3
with:
repository: airspeed-velocity/asv
path: asv
fetch-depth: 0
- name: Set up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: asv_runner/pyproject.toml
- name: Install asv and depedencies
run: cd asv/ && python -m pip install ".[test,hg]"
- name: Install asv_runner
run: cd asv_runner/ && pip install .
- name: Run tests with the current asv_runner
run: |
cd asv/
ASV_RUNNER="$(pwd)/../asv_runner" python -m pytest -v --timeout=300 --durations=100 test
1 change: 0 additions & 1 deletion .github/workflows/trigger_asv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ jobs:
ref: master
wait_workflow: true
client_payload: '{"pr_number": "${{ github.event.client_payload.slash_command.args.named.pr_number }}"}'

Loading