-
Notifications
You must be signed in to change notification settings - Fork 43
42 lines (34 loc) · 1013 Bytes
/
unit-tests.yaml
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: run ibm.power_hmc collection unit tests
# run unit test during pull request to dev-collection
on:
push:
branches:
- '*'
pull_request:
branches: [dev-collection]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
unit-test:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.7']
name: running unit tests with python ${{ matrix.python-version }}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install ansible ${{ matrix.ansible-version }}
run: |
make install-ansible
- name: install python modules needed for unit testing
run: |
make install-unit-test-requirements
- name: run unit tests
run: |
make unit-test PYTHON_VERSION=${{ matrix.python-version }}