-
Notifications
You must be signed in to change notification settings - Fork 17
51 lines (48 loc) · 1.34 KB
/
ci.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
name: ci
on:
push:
branches:
- master
pull_request:
types: ["opened", "synchronize", "reopened"]
create:
jobs:
tests-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10"
architecture: "x64"
- name: Install deps
run: pip install -r requirements_dev.txt
- name: Unit tests
run: make test_unit
tests-integration:
runs-on: ubuntu-latest
strategy:
matrix:
kodi-version: ["19", "20"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10"
architecture: "x64"
- name: Install deps
run: pip install -r requirements_dev.txt
- name: Pull conkodi container image
run: podman pull quay.io/quarck/conkodi:${{ matrix.kodi-version }}
- name: Pull mockserver container image
run: podman pull docker.io/mockserver/mockserver:mockserver-5.11.2
- name: Set permissions
run: sudo chmod -R a+rw tests/data
- name: Integration tests
run: make test_integration
- name: Kodi logs analysis
if: failure()
run: podman logs kodi
- name: Mockserver logs analysis
if: failure()
run: podman logs mockserver