Skip to content

Merge branch 'main' of https://github.com/neilshaabi/mindli #97

Merge branch 'main' of https://github.com/neilshaabi/mindli

Merge branch 'main' of https://github.com/neilshaabi/mindli #97

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.7
uses: actions/setup-python@v3
with:
python-version: "3.10.7"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --exclude ./migrations --show-source
- name: Test with pytest
run: |
pytest