-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
94 lines (79 loc) · 2.17 KB
/
ci.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: CI
on:
push:
branches: master
pull_request:
branches: master
env:
ENV_FILE: environment.yml
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setting conda path
run: echo "::set-env name=PATH::${HOME}/miniconda3/bin:${PATH}"
- name: Looking for unwanted patterns
run: ci/code_checks.sh patterns
if: true
- name: Setup environment and build pandas
run: ci/setup_env.sh
if: true
- name: Linting
run: |
source activate pandas-dev
ci/code_checks.sh lint
if: true
- name: Dependencies consistency
run: |
source activate pandas-dev
ci/code_checks.sh dependencies
if: true
- name: Checks on imported code
run: |
source activate pandas-dev
ci/code_checks.sh code
if: true
- name: Running doctests
run: |
source activate pandas-dev
ci/code_checks.sh doctests
if: true
- name: Docstring validation
run: |
source activate pandas-dev
ci/code_checks.sh docstrings
if: true
- name: Typing validation
run: |
source activate pandas-dev
ci/code_checks.sh typing
if: true
- name: Testing docstring validation script
run: |
source activate pandas-dev
pytest --capture=no --strict scripts
if: true
- name: Running benchmarks
run: |
source activate pandas-dev
cd asv_bench
asv check -E existing
git remote add upstream https://github.com/pandas-dev/pandas.git
git fetch upstream
if git diff upstream/master --name-only | grep -q "^asv_bench/"; then
asv machine --yes
ASV_OUTPUT="$(asv dev)"
if [[ $(echo "$ASV_OUTPUT" | grep "failed") ]]; then
echo "##vso[task.logissue type=error]Benchmarks run with errors"
echo "$ASV_OUTPUT"
exit 1
else
echo "Benchmarks run without errors"
fi
else
echo "Benchmarks did not run, no changes detected"
fi
if: true