14
14
ENV_FILE : environment.yml
15
15
PANDAS_CI : 1
16
16
17
+ permissions :
18
+ contents : read
19
+
17
20
jobs :
18
21
pre_commit :
19
22
name : pre-commit
@@ -52,50 +55,46 @@ jobs:
52
55
with :
53
56
fetch-depth : 0
54
57
55
- - name : Cache conda
56
- uses : actions/cache@v3
57
- with :
58
- path : ~/conda_pkgs_dir
59
- key : ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
60
-
61
58
- name : Set up Conda
62
59
uses : ./.github/actions/setup-conda
63
60
64
61
- name : Build Pandas
65
62
id : build
66
63
uses : ./.github/actions/build_pandas
67
64
65
+ # The following checks are independent of each other and should still be run if one fails
68
66
- name : Check for no warnings when building single-page docs
69
67
run : ci/code_checks.sh single-docs
70
- if : ${{ steps.build.outcome == 'success' }}
68
+ if : ${{ steps.build.outcome == 'success' && always() }}
71
69
72
70
- name : Run checks on imported code
73
71
run : ci/code_checks.sh code
74
- if : ${{ steps.build.outcome == 'success' }}
72
+ if : ${{ steps.build.outcome == 'success' && always() }}
75
73
76
74
- name : Run doctests
77
75
run : ci/code_checks.sh doctests
78
- if : ${{ steps.build.outcome == 'success' }}
76
+ if : ${{ steps.build.outcome == 'success' && always() }}
79
77
80
78
- name : Run docstring validation
81
79
run : ci/code_checks.sh docstrings
82
- if : ${{ steps.build.outcome == 'success' }}
80
+ if : ${{ steps.build.outcome == 'success' && always() }}
83
81
84
82
- name : Use existing environment for type checking
85
83
run : |
86
84
echo $PATH >> $GITHUB_PATH
87
85
echo "PYTHONHOME=$PYTHONHOME" >> $GITHUB_ENV
88
86
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
87
+ if : ${{ steps.build.outcome == 'success' && always() }}
89
88
90
89
- name : Typing
91
90
uses :
pre-commit/[email protected]
92
91
with :
93
92
extra_args : --hook-stage manual --all-files
94
- if : ${{ steps.build.outcome == 'success' }}
93
+ if : ${{ steps.build.outcome == 'success' && always() }}
95
94
96
95
- name : Run docstring validation script tests
97
96
run : pytest scripts
98
- if : ${{ steps.build.outcome == 'success' }}
97
+ if : ${{ steps.build.outcome == 'success' && always() }}
99
98
100
99
asv-benchmarks :
101
100
name : ASV Benchmarks
@@ -115,12 +114,6 @@ jobs:
115
114
with :
116
115
fetch-depth : 0
117
116
118
- - name : Cache conda
119
- uses : actions/cache@v3
120
- with :
121
- path : ~/conda_pkgs_dir
122
- key : ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
123
-
124
117
- name : Set up Conda
125
118
uses : ./.github/actions/setup-conda
126
119
0 commit comments