-
Notifications
You must be signed in to change notification settings - Fork 28
40 lines (40 loc) · 1.1 KB
/
validate-seasons.yml
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
name: Validate seasons
on:
push:
branches:
- validateSeason # Remove after finalizing testing
pull_request:
branches:
- master
paths:
- "custom_mappings.yaml"
- "**.py"
env:
PYTHON_VERSION: "3.10"
jobs:
validate-added-mappings:
runs-on: ubuntu-latest
steps:
# TODO: maybe make this step a pre-requisite to any CI flow
- name: Prevent file change
uses: xalvarez/prevent-file-change-action@v1
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
pattern: .*\.py
trustedAuthors: evie-lau
allowNewFiles: false
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tvdb_v4_official python-dotenv pyyaml
- name: Run season validation against TVDB
env:
TVDB_API_KEY: ${{ secrets.TVDB_API_KEY }}
run: python validate-tvdb.py