Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
souzatharsis authored Oct 17, 2024
1 parent e059f47 commit 9a252f7
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,32 @@ jobs:
- name: Set up environment
run: |
apt-get update
apt-get install -y python3-full python3-venv ffmpeg
DEBIAN_FRONTEND=noninteractive apt-get install -y python3-full python3-pip python3-venv ffmpeg
python3 -m venv /opt/venv
. /opt/venv/bin/activate
- name: Check Ubuntu and FFmpeg versions
run: |
cat /etc/os-release
ffmpeg -version
python --version
pip --version
python3 --version
pip3 --version
- name: Install dependencies
run: |
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
. /opt/venv/bin/activate
pip3 install flake8 pytest
if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi
- name: Lint with flake8
run: |
. /opt/venv/bin/activate
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:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
pytest
. /opt/venv/bin

0 comments on commit 9a252f7

Please sign in to comment.