@@ -2,74 +2,81 @@ name: CI
2
2
3
3
on :
4
4
push :
5
- branches : master
5
+ branches : [ master]
6
6
pull_request :
7
7
branches :
8
8
- master
9
9
- 1.2.x
10
10
11
11
env :
12
12
ENV_FILE : environment.yml
13
+ PANDAS_CI : 1
13
14
14
15
jobs :
15
16
checks :
16
17
name : Checks
17
18
runs-on : ubuntu-latest
18
- steps :
19
-
20
- - name : Setting conda path
21
- run : echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
19
+ defaults :
20
+ run :
21
+ shell : bash -l {0}
22
22
23
+ steps :
23
24
- name : Checkout
24
25
uses : actions/checkout@v1
25
26
26
27
- name : Looking for unwanted patterns
27
28
run : ci/code_checks.sh patterns
28
29
if : always()
29
30
30
- - name : Setup environment and build pandas
31
- run : ci/setup_env.sh
32
- if : always()
31
+ - name : Cache conda
32
+ uses : actions/cache@v2
33
+ with :
34
+ path : ~/conda_pkgs_dir
35
+ key : ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
33
36
34
- - name : Linting
37
+ - uses : conda-incubator/setup-miniconda@v2
38
+ with :
39
+ activate-environment : pandas-dev
40
+ channel-priority : strict
41
+ environment-file : ${{ env.ENV_FILE }}
42
+ use-only-tar-bz2 : true
43
+
44
+ - name : Environment Detail
35
45
run : |
36
- source activate pandas-dev
37
- ci/code_checks.sh lint
46
+ conda info
47
+ conda list
48
+
49
+ - name : Build Pandas
50
+ run : |
51
+ python setup.py build_ext -j 2
52
+ python -m pip install -e . --no-build-isolation --no-use-pep517
53
+
54
+ - name : Linting
55
+ run : ci/code_checks.sh lint
38
56
if : always()
39
57
40
58
- name : Checks on imported code
41
- run : |
42
- source activate pandas-dev
43
- ci/code_checks.sh code
59
+ run : ci/code_checks.sh code
44
60
if : always()
45
61
46
62
- name : Running doctests
47
- run : |
48
- source activate pandas-dev
49
- ci/code_checks.sh doctests
63
+ run : ci/code_checks.sh doctests
50
64
if : always()
51
65
52
66
- name : Docstring validation
53
- run : |
54
- source activate pandas-dev
55
- ci/code_checks.sh docstrings
67
+ run : ci/code_checks.sh docstrings
56
68
if : always()
57
69
58
70
- name : Typing validation
59
- run : |
60
- source activate pandas-dev
61
- ci/code_checks.sh typing
71
+ run : ci/code_checks.sh typing
62
72
if : always()
63
73
64
74
- name : Testing docstring validation script
65
- run : |
66
- source activate pandas-dev
67
- pytest --capture=no --strict-markers scripts
75
+ run : pytest --capture=no --strict-markers scripts
68
76
if : always()
69
77
70
78
- name : Running benchmarks
71
79
run : |
72
- source activate pandas-dev
73
80
cd asv_bench
74
81
asv check -E existing
75
82
git remote add upstream https://github.com/pandas-dev/pandas.git
@@ -106,7 +113,6 @@ jobs:
106
113
run : |
107
114
source activate pandas-dev
108
115
python web/pandas_web.py web/pandas --target-path=web/build
109
-
110
116
- name : Build documentation
111
117
run : |
112
118
source activate pandas-dev
0 commit comments