-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 920 Bytes
/
test.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
---
name: Tests
on:
pull_request:
branches:
- main
jobs:
generate-matrix:
name: Generate matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.generate-matrix.outputs.matrix }}
steps:
- name: Generate matrix
id: generate-matrix
uses: wandnz/action-supported-distro-releases@v1
molecule:
name: Molecule
runs-on: ubuntu-latest
needs: generate-matrix
strategy:
matrix:
target: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install test dependencies
run: pip3 install -r test-requirements.txt
- name: Run molecule
run: molecule test
env:
MOLECULE_DOCKER_IMAGE: ${{ matrix.target }}