-
Notifications
You must be signed in to change notification settings - Fork 45
72 lines (62 loc) · 1.9 KB
/
unittests.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Unittests
on:
pull_request:
push:
branches:
- master
- release_*
jobs:
test:
name: Python ${{ matrix.os.python }} tests on ${{ matrix.os.name }}-${{ matrix.os.version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- name: fedora
version: 36
python: 3
engine: docker
- name: fedora
version: 37
python: 3
engine: docker
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: pytests via test.sh
env:
OS: ${{ matrix.os.name }}
OS_VERSION: ${{ matrix.os.version }}
PYTHON_VERSION: ${{ matrix.os.python }}
ENGINE: ${{ matrix.os.engine }}
run: ./test.sh
- name: Upload pytest html report
uses: actions/upload-artifact@v3
if: failure()
with:
path: __pytest_reports/osbs-unit-tests.html
name: osbs-unit-tests_${{ matrix.os.name }}_${{ matrix.os.version }}.python${{ matrix.os.python }}.html
- name: Run coveralls-python
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.os.name }}-${{ matrix.os.version }}-python${{ matrix.os.python }}
COVERALLS_PARALLEL: true
run: |
pip3 install --upgrade pip==20.0.2
pip3 install --upgrade setuptools
pip3 install --upgrade coveralls
/home/runner/.local/bin/coveralls --service=github
coveralls-finish:
name: Finish coveralls-python
needs: test
runs-on: ubuntu-latest
steps:
- name: Finished
run: |
pip3 install --upgrade pip==20.0.2
pip3 install --upgrade setuptools
pip3 install --upgrade coveralls
/home/runner/.local/bin/coveralls --finish --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}