-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (41 loc) · 1.17 KB
/
molecule_tests.yml
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
---
name: Molecule Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
role:
- deploy_user
- passenger
- python
- django
# - postgresql
- prosody_setup
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
pip-${{ hashFiles('requirements.txt') }}
pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
python -m pip install -r requirements.txt
- name: Create unencrypted ssh key for testing deploy user
run: |
rm roles/deploy_user/files/id_rsa*
ssh-keygen -f roles/deploy_user/files/id_rsa -P=
- name: Test with molecule
run: cd roles/${{ matrix.role }} && molecule test
# not using working-directory because it does not support expressions