Skip to content

Commit 422d58f

Browse files
authored
Merge pull request #884 from dev-sec/fix_bsd_tests
Use fixed test env for BSD VMs
2 parents c5d9e8a + bb7e744 commit 422d58f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ssh_hardening_bsd.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,22 @@ jobs:
4646
path: ansible_collections/devsec/hardening
4747
submodules: true
4848

49+
- name: Install dependencies
50+
run: |
51+
source ~/.venv/ansible-collection-hardening/bin/activate
52+
python -m pip install --no-cache-dir --upgrade pip
53+
pip install -r requirements.txt
54+
pip install python-vagrant
55+
working-directory: ansible_collections/devsec/hardening
56+
4957
- name: Update Vagrant Box
50-
run: vagrant box update --box generic/${{ matrix.molecule_distro }} || true
58+
run: |
59+
vagrant box update --box generic/${{ matrix.molecule_distro }} || true
5160
5261
- name: Test with molecule
53-
run: molecule test -s ssh_hardening_bsd
62+
run: |
63+
source ~/.venv/ansible-collection-hardening/bin/activate
64+
molecule test -s ssh_hardening_bsd
5465
env:
5566
MOLECULE_DISTRO: ${{ matrix.molecule_distro }}
5667
working-directory: ansible_collections/devsec/hardening

0 commit comments

Comments
 (0)