Skip to content

Commit

Permalink
Merge pull request #1315 from HaoZeke/citestasvrunner
Browse files Browse the repository at this point in the history
CI: Test `asv_runner`
  • Loading branch information
HaoZeke committed Aug 13, 2023
2 parents 2586ba6 + f5b921c commit 8f5c8af
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/triggered.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
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.7", "3.10", "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
run: python -m pip install ".[test,hg]"

- name: Get asv_runner to be tested
uses: actions/checkout@v3
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

0 comments on commit 8f5c8af

Please sign in to comment.