-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (59 loc) · 2.63 KB
/
smb-tdd.yml
File metadata and controls
71 lines (59 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: SMB mount test
on:
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- '**/*.md'
- .gitignore
pull_request:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- '**/*.md'
- .gitignore
permissions:
contents: read
jobs:
smb_mount:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: ["3.10"]
molecule-scenario: ["test_centosstream9", "test_rocky9", "test_alma9", "test_ubuntu2204", "test_debian12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# INFO rolled back to version 7.0.14 cause latest(7.0.16/7.0.18) is not getting detected by vagrant
- name: Install VirtualBox 7.0.14
run: |
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --dearmor --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
sudo apt-get update
wget https://download.virtualbox.org/virtualbox/7.0.14/virtualbox-7.0_7.0.14-161095~Ubuntu~$(lsb_release -cs)_amd64.deb
sudo apt-get install -y linux-headers-$(uname -r) dkms
sudo apt-get install ./virtualbox-7.0_7.0.14-161095~Ubuntu~$(lsb_release -cs)_amd64.deb
- name: Verify VirtualBox installation
run: VBoxManage --version
- name: install vagrant
run: |
# Get vagrant gpg key
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get update && sudo apt-get install vagrant -y
- name: Verify Vagrant installation
run: vagrant --version
- name: Run molecule test
run: |
cd smb_mount
molecule test -s ${{ matrix.molecule-scenario }}