-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (46 loc) · 1.09 KB
/
pytest.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
43
44
45
46
47
48
49
name: PyTest
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pytest:
name: Run unit and component tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scenarios:
- name: Run tests on RHEL7
distro: rhel7
- name: Run tests on RHEL8
distro: rhel8
- name: Run tests on RHEL9
distro: rhel9
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install strato-skipper
- name: ${{matrix.scenarios.name}}
run: |
make pytest-${{matrix.scenarios.distro}}
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: ${{matrix.scenarios.distro}}
parallel: true
coverage:
needs: pytest
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true