Reimplement native mode to function client side #727
Workflow file for this run
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: Test Jellyfin-Kodi | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
PR_TRIGGERED: ${{ github.event_name == 'pull_request' && github.repository == 'jellyfin/jellyfin-kodi' }} | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
py_version: ['3.9', '3.11', '3.12'] | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Set up Python ${{ matrix.py_version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.py_version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements-dev.txt | |
- name: Lint with flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --output-file=flake8.output | |
cat flake8.output | |
- name: Run tests and generate coverage | |
run: | | |
coverage run | |
- name: Generate coverage report | |
run: | | |
coverage xml | |
coverage report | |
- name: Upload coverage | |
uses: codecov/[email protected] | |
if: ${{ matrix.py_version == '3.11' }} | |
- name: Publish Test Artifact | |
uses: actions/[email protected] | |
with: | |
retention-days: 14 | |
name: ${{ matrix.py_version }}-${{ matrix.os }}-test-results | |
path: | | |
flake8.output | |
test.xml | |
coverage.xml | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: psf/black@stable |