File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
# derived from https://github.com/actions/example-services/blob/master/.github/workflows/postgres-service.yml
9
9
main :
10
+ # 7/16/24: confirm current ubuntu-latest is still 22.04.
10
11
runs-on : ubuntu-latest
11
12
12
13
strategy :
84
85
85
86
export QIITA_SERVER_CERT=`pwd`/qiita-dev/qiita_core/support_files/ci_server.crt
86
87
export QIITA_CONFIG_FP=`pwd`/qiita-dev/qiita_core/support_files/config_test_local.cfg
87
- pip --quiet install -U pip
88
88
89
89
pip --quiet install https://github.com/qiita-spots/qtp-job-output-folder/archive/refs/heads/main.zip
90
90
@@ -136,9 +136,14 @@ jobs:
136
136
run : |
137
137
conda activate qiita_client
138
138
export QIITA_SERVER_CERT=`pwd`/qiita-dev/qiita_core/support_files/ci_server.crt
139
+ export QIITA_ROOT_CA=`pwd`/qiita-dev/qiita_core/support_files/ci_rootca.crt
139
140
export QIITA_CONFIG_FP=`pwd`/qiita-dev/qiita_core/support_files/config_test_local.cfg
140
- export QP_KLP_CONFIG_FP=`pwd`/configuration.json
141
141
export PYTHONWARNINGS="ignore:Certificate for localhost has no \`subjectAltName\`"
142
+
143
+ # before starting nosetests, add the root ca used to sign qiita's ci_server.crt file
144
+ # to the environment's certifi store. This will prevent CERTIFICATE_VERIFY_FAILED
145
+ # errors.
146
+ python rootca_insert.py $QIITA_ROOT_CA
142
147
nosetests --with-doctest --with-coverage -v --cover-package=qiita_client
143
148
- uses : codecov/codecov-action@v3
144
149
with :
Original file line number Diff line number Diff line change
1
+ import certifi
2
+ from sys import argv
3
+
4
+
5
+ def main (ca_fp ):
6
+ with open (ca_fp , 'rb' ) as f :
7
+ my_ca = f .read ()
8
+
9
+ ca_file = certifi .where ()
10
+
11
+ with open (ca_file , 'ab' ) as f :
12
+ f .write (my_ca )
13
+
14
+ print ("%s updated" % ca_file )
15
+
16
+
17
+ if __name__ == '__main__' :
18
+ main (argv [1 ])
You can’t perform that action at this time.
0 commit comments