Skip to content

Flake 8 Formatting

Flake 8 Formatting #16

Workflow file for this run

name: Python Run Tests
on: [push, pull_request]
jobs:
run_tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get install -y portaudio19-dev espeak alsa-utils alsa-oss
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
pip install flake8
flake8 .
- name: Run Python scripts
run: |
for file in $(find . -name "*.py"); do
echo "Running $file"
python $file
done