Proxy support #445
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |