forked from Broadcast/video-summary-bot
Execute application with Gitea Actions (#4)
Closes Broadcast/video-summary-bot#1 Closes Broadcast/video-summary-bot#3 Reviewed-on: Broadcast/video-summary-bot#4
This commit is contained in:
29
.gitea/workflows/execute.yaml
Normal file
29
.gitea/workflows/execute.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
name: execute
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
video-url:
|
||||
description: "URL for the video to be analyzed"
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
Python:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
OPENAI_API_KEY: "nokey"
|
||||
OPENAI_BASE_URL: "http://192.168.1.168/v1"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Run applicaiton
|
||||
run: python app.py
|
||||
Reference in New Issue
Block a user