Skip to content

release: v1.63.0

release: v1.63.0 #187

Workflow file for this run

name: CI
on:
pull_request:
branches: [master]
workflow_dispatch: ~
jobs:
validate:
runs-on: ubuntu-latest
outputs:
commit: ${{ steps.validate.outputs.commit }}
steps:
- uses: actions/checkout@v4
- name: validate
id: validate
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: |
python3 ./scripts/validate_commit.py
build:
runs-on: ubuntu-latest
needs: validate
steps:
- uses: actions/checkout@v4
if: "!startsWith(needs.validate.outputs.commit, 'chore:')"
- name: setup-python
if: "!startsWith(needs.validate.outputs.commit, 'chore:')"
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: install
if: "!startsWith(needs.validate.outputs.commit, 'chore:')"
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: lint
if: "!startsWith(needs.validate.outputs.commit, 'chore:')"
run: |
flake8
- name: test
if: "!startsWith(needs.validate.outputs.commit, 'chore:')"
env:
A4KSTREAMING_IMDB_TOKEN: ${{ secrets.A4KSTREAMING_IMDB_TOKEN }}
A4KSTREAMING_PREMIUMIZE_APIKEY: ${{ secrets.A4KSTREAMING_PREMIUMIZE_APIKEY }}
A4KSTREAMING_REALDEBRID_APIKEY: ${{ secrets.A4KSTREAMING_REALDEBRID_APIKEY }}
A4KSTREAMING_ALLDEBRID_APIKEY: ${{ secrets.A4KSTREAMING_ALLDEBRID_APIKEY }}
A4KSTREAMING_PROVIDER_URL: ${{ secrets.A4KSTREAMING_PROVIDER_URL }}
run: |
pytest -v