3939 path : " *.snap"
4040 retention-days : 5
4141
42+ lint-check :
43+ name : Build microceph snap
44+ runs-on : ubuntu-22.04
45+ env :
46+ SNAPCRAFT_BUILD_ENVIRONMENT : " lxd"
47+ steps :
48+ - name : Checkout code
49+ uses : actions/checkout@v3
50+ with :
51+ fetch-depth : 0
52+
53+ - name : Install dependencies
54+ run : |
55+ # Python script dependencies
56+ sudo python -m pip install --upgrade pip
57+ sudo pip install flake8 pep8-naming
58+
59+ - name : Lint check help scripts.
60+ run : |
61+ flake8 ./scripts/ --count --show-source --statistics
62+
4263 unit-tests :
4364 name : Run Unit tests
4465 runs-on : ubuntu-22.04
@@ -85,11 +106,7 @@ jobs:
85106 run : |
86107 # Python script dependencies
87108 sudo python -m pip install --upgrade pip
88- sudo pip install flake8 pep8-naming boto3
89-
90- - name : Lint check
91- run : |
92- flake8 . --count --show-source --statistics
109+ sudo pip install boto3
93110
94111 - name : Install and setup
95112 run : |
@@ -219,7 +236,11 @@ jobs:
219236 run : ~/actionutils.sh free_runner_disk
220237
221238 - name : Install dependencies
222- run : ~/actionutils.sh setup_lxd
239+ run : |
240+ # Python script dependencies
241+ sudo python -m pip install --upgrade pip
242+ sudo pip install boto3
243+ ~/actionutils.sh setup_lxd
223244
224245 - name : Create containers with loopback devices
225246 run : ~/actionutils.sh create_containers
@@ -314,6 +335,12 @@ jobs:
314335 - name : Copy utils
315336 run : cp tests/scripts/actionutils.sh $HOME
316337
338+ - name : Install dependencies
339+ run : |
340+ # Python script dependencies
341+ sudo python -m pip install --upgrade pip
342+ sudo pip install boto3
343+
317344 - name : Clear FORWARD firewall rules
318345 run : ~/actionutils.sh cleaript
319346
@@ -370,7 +397,11 @@ jobs:
370397 run : ~/actionutils.sh free_runner_disk
371398
372399 - name : Install dependencies
373- run : ~/actionutils.sh setup_lxd
400+ run : |
401+ # Python script dependencies
402+ sudo python -m pip install --upgrade pip
403+ sudo pip install boto3
404+ ~/actionutils.sh setup_lxd
374405
375406 - name : Create containers with loopback devices
376407 run : ~/actionutils.sh create_containers
@@ -394,15 +425,20 @@ jobs:
394425 - name : Enable RGW
395426 run : ~/actionutils.sh headexec enable_rgw
396427
397- - name : Exercise RGW
398- run : ~/actionutils.sh headexec testrgw
428+ - name : Exercise RGW before upgrade
429+ run : ~/actionutils.sh headexec testrgw_old
399430
400431 - name : Install local build
401432 run : ~/actionutils.sh install_multinode
402433
403434 - name : Wait until 3 OSDs are up
404435 run : ~/actionutils.sh headexec wait_for_osds 3
405436
437+ - name : Install boto3 on head node.
438+ run : |
439+ ~/actionutils.sh headexec install_boto3
440+
406441 - name : Exercise RGW again
407- run : ~/actionutils.sh headexec testrgw
408-
442+ run : |
443+ ~/actionutils.sh testrgw_on_lxd node-wrk0
444+
0 commit comments