dev: conform all files to PEP8 standards #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test Python Application | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
LLAMA_API_TOKEN: ${{ secrets.LLAMA_API_TOKEN }} | |
URL: ${{ secrets.URL }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python -m venv venv | |
. venv/bin/activate | |
pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
. venv/bin/activate | |
python -m unittest discover tests | |
- name: Lint code | |
run: | | |
. venv/bin/activate | |
pip install flake8 | |
flake8 . |