Skip to content

Migrated to WTForms #32

Migrated to WTForms

Migrated to WTForms #32

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
name: Python application CI/CD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
ENV: test
SECRET_KEY: "secret-key"
DATABASE_URL: ""
MAIL_USERNAME: ""
MAIL_PASSWORD: ""
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: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --show-source
- name: Test with pytest
run: |
pytest