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 9a252f7 commit 4932db0
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,36 @@ jobs:

- name: Set up environment
run: |
set -e
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y python3-full python3-pip python3-venv ffmpeg
python3 -m venv /opt/venv
. /opt/venv/bin/activate
python3 -m pip install --upgrade pip
- name: Check Ubuntu and FFmpeg versions
run: |
set -e
. /opt/venv/bin/activate
echo "Ubuntu version:"
cat /etc/os-release
echo "FFmpeg version:"
ffmpeg -version
echo "Python version:"
python3 --version
pip3 --version
echo "Pip version:"
pip --version
- name: Install dependencies
run: |
set -e
. /opt/venv/bin/activate
pip3 install flake8 pytest
if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
set -e
. /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
Expand All @@ -50,4 +60,6 @@ jobs:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
. /opt/venv/bin
set -e
. /opt/venv/bin/activate
pytest

0 comments on commit 4932db0

Please sign in to comment.