Skip to content

Commit 68cbeed

Browse files
chore: temporary add verbose to hook tests
Signed-off-by: Nikita Korolev <[email protected]>
1 parent 1eff462 commit 68cbeed

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed

.github/workflows/dev_module_build.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ on:
3232
type: number
3333
pull_request:
3434
types: [opened, reopened, synchronize, labeled, unlabeled]
35+
branches:
36+
- main
37+
- chore/core/mitigation-cve-3
3538
push:
3639
branches:
3740
- main
@@ -181,7 +184,8 @@ jobs:
181184
run: task -p lint:prettier:yaml
182185

183186
test:
184-
runs-on: ubuntu-latest
187+
runs-on: ubuntu-22.04
188+
# runs-on: ubuntu-latest
185189
name: Run unit test
186190
steps:
187191
- name: Set up Go ${{ env.GO_VERSION }}
@@ -200,7 +204,7 @@ jobs:
200204

201205
- name: Run test hooks
202206
run: |
203-
task hooks:test
207+
task task --verbose hooks:test
204208
205209
- name: Run unit test virtualization-controller
206210
run: |

hooks/Taskfile.yaml

+29-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,40 @@ version: "3"
33
tasks:
44
test:
55
cmds:
6-
- task test:prepare
7-
- task test:run
6+
- task --verbose test:prepare
7+
- task --verbose test:run
88
- task test:clean
99

1010
test:prepare:
1111
cmds:
1212
- |
13-
python3 -m venv .venv
14-
source .venv/bin/activate
15-
pip3 install -r ../lib/python/requirements.txt
13+
VENV=venv
14+
15+
cat /etc/os-release
16+
17+
# set -x
18+
echo "task prep"
19+
which python3
20+
which pip3
21+
#pip3 install virtualenv
22+
23+
echo "==="
24+
python3 -m venv $VENV
25+
# python3 -m venv venv
26+
27+
echo "--python3 -m venv $VENV--"
28+
ls -la $VENV/
29+
ls -la $VENV/bin/
30+
31+
echo "--source $VENV/bin/activate--"
32+
source $VENV/bin/activate
33+
34+
echo "--ls--"
35+
ls -la ../lib/python/
36+
37+
echo "--pip3 -v install -r ../lib/python/requirements.txt--"
38+
pip3 -v install -r ../lib/python/requirements.txt
39+
1640
deactivate
1741
1842
test:run:

0 commit comments

Comments
 (0)