Skip to content

Commit

Permalink
chore: temporary add verbose to hook tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Korolev <[email protected]>
  • Loading branch information
universal-itengineer committed Jan 16, 2025
1 parent 1eff462 commit 773932a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dev_module_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ on:
type: number
pull_request:
types: [opened, reopened, synchronize, labeled, unlabeled]
branches:
- main
- chore/core/mitigation-cve-3
push:
branches:
- main
Expand Down Expand Up @@ -181,7 +184,8 @@ jobs:
run: task -p lint:prettier:yaml

test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
# runs-on: ubuntu-latest
name: Run unit test
steps:
- name: Set up Go ${{ env.GO_VERSION }}
Expand All @@ -200,7 +204,7 @@ jobs:

- name: Run test hooks
run: |
task hooks:test
task task --verbose hooks:test
- name: Run unit test virtualization-controller
run: |
Expand Down
34 changes: 29 additions & 5 deletions hooks/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,40 @@ version: "3"
tasks:
test:
cmds:
- task test:prepare
- task test:run
- task --verbose test:prepare
- task --verbose test:run
- task test:clean

test:prepare:
cmds:
- |
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r ../lib/python/requirements.txt
VENV=venv
cat /etc/os-release
set -x
echo "task prep"
which python3
which pip3
#pip3 install virtualenv
echo "==="
python3 -m venv $VENV
# python3 -m venv venv
echo "--python3 -m venv $VENV--"
ls -la $VENV/
ls -la $VENV/bin/
echo "--source $VENV/bin/activate--"
source $VENV/bin/activate
echo "--ls--"
ls -la ../lib/python/
echo "--pip3 -v install -r ../lib/python/requirements.txt--"
pip3 -v install -r ../lib/python/requirements.txt
deactivate
test:run:
Expand Down
2 changes: 1 addition & 1 deletion lib/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cffi==1.16.0
cffi==1.17.0
certifi==2024.07.04
cryptography==43.0.1
DateTime==5.2
Expand Down

0 comments on commit 773932a

Please sign in to comment.