Skip to content

Update README.md

Update README.md #12

Workflow file for this run

name: Python application
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install ffmpeg
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
env:
PYTHONPATH: ${{ github.workspace }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_GPTMODEL: ${{ secrets.OPENAI_GPTMODEL }}
OPENAI_TEMPERATURE: ${{ secrets.OPENAI_TEMPERATURE }}
OPENAI_TOKENS: ${{ secrets.OPENAI_TOKENS }}
run: |
pytest