Skip to content

[pre-commit.ci] pre-commit autoupdate (#340) #473

[pre-commit.ci] pre-commit autoupdate (#340)

[pre-commit.ci] pre-commit autoupdate (#340) #473

Workflow file for this run

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