Throw error when video not found #11
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/softprops/github-actions-schemas/master/workflow.json | |
name: CI (python) | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- "**/*.py" | |
pull_request: | |
branches: ["main"] | |
paths: | |
- "**/*.py" | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: "pip" # caching pip dependencies | |
- name: Install linter | |
run: pip install pylint==2.17.5 | |
- name: Install requirements | |
run: pip install -r requirements.txt | |
- name: Lint | |
run: pylint friends_queue | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: "pip" # caching pip dependencies | |
- name: Install formatter | |
run: pip install black==23.7.0 | |
- name: Check formatting | |
run: black --check friends_queue |