File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 52
52
python-version : ${{ matrix.python.version }}
53
53
- name : Install dependencies
54
54
run : pip3 install tox pytest-github-actions-annotate-failures
55
+ - name : Setup dummy config
56
+ run : tests/ci_tools/setup-dummy-config.sh
55
57
- name : Run tests
56
58
env :
57
59
TOXENV : ${{ matrix.python.toxenv }}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -u
4
+
5
+ if [[ -z " ${CI:- } " || -z " ${GITHUB_ACTIONS:- } " ]]; then
6
+ echo " ERROR: Not running in the GitHub CI."
7
+ exit 2
8
+ fi
9
+
10
+ CONFIG_FILE=~ /.python-gitlab.cfg
11
+ if [[ -e " ${CONFIG_FILE} " ]]; then
12
+ echo " ERROR: Config file already exists: ${CONFIG_FILE} "
13
+ echo " Saved you from destroying your config"
14
+ exit 2
15
+ fi
16
+
17
+ cat << EOF >"${CONFIG_FILE} "
18
+ [global]
19
+ default = gitlab
20
+ ssl_verify = true
21
+ timeout = 5
22
+ api_version = 4
23
+
24
+ [gitlab]
25
+ url = https://gitlab.com/
26
+ private_token = not-a-valid-token
27
+ EOF
28
+
29
+ echo " Setup config at: ${CONFIG_FILE} "
You can’t perform that action at this time.
0 commit comments