forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (62 loc) · 1.63 KB
/
bisect.yml
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
60
61
62
63
64
65
66
67
68
69
name: Bisect Regressions
on:
workflow_dispatch:
inputs:
good:
description: 'good commit'
default: 'v1.3.5'
required: true
bad:
description: 'bad commit'
default: 'HEAD'
required: true
issue:
description: 'GH issue'
required: true
env:
GH_ISSUE: ${{ github.event.inputs.issue }}
ENV_FILE: environment.yml
PANDAS_CI: 1
jobs:
bisect:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch git tags
run: |
git remote -v
git fetch --all --tags
- name: Copy code sample and runner script
run: |
cp bisect/$GH_ISSUE.py ..
cp bisect/runner.sh ..
sudo chmod +x ../runner.sh
ls -latr ..
- uses: mamba-org/provision-with-micromamba@v12
with:
channels: conda-forge
activate-environment: pandas-dev
channel-priority: strict
environment-file: ${{ env.ENV_FILE }}
- name: Build Pandas
id: build
uses: ./.github/actions/build_pandas
- name: Import pandas and print version
run: |
conda info
python -c "import pandas as pd;print(pd.__version__)"
- name: git bisect start ${{ github.event.inputs.bad }} ${{ github.event.inputs.good }}
run: |
git bisect start ${{ github.event.inputs.bad }} ${{ github.event.inputs.good }}
git bisect log
- name: git bisect run
run: |
conda info
git bisect run ../runner.sh $GH_ISSUE
git bisect log