Skip to content

Bump flask from 2.0.2 to 2.3.2 (#59) #176

Bump flask from 2.0.2 to 2.3.2 (#59)

Bump flask from 2.0.2 to 2.3.2 (#59) #176

Workflow file for this run

name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push events but only for the main branch.
push:
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:
jobs:
build:
# The type of runner that the job will run on.
runs-on: ubuntu-latest
# Configures the build to use the latest version of Python 3.
strategy:
matrix:
python-version: [3.x]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can
# access it.
- uses: actions/checkout@v2
- name: Run Python code formatting with Black
uses: lgeiger/black-action@v1.0.1
with:
args: "."
- name: Run front-end code formatting with Prettier
uses: creyD/prettier_action@v3.3
with:
commit_message: Format code with Black and Prettier
prettier_options: --write {**/*,*}.{js,ts,jsx,tsx,html,css}
- name: Switch to current branch
run: git checkout ${{ env.BRANCH }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Run unit tests with Pytest
run: coverage run --source=src -m pytest -v
- name: Get code coverage report
run: coverage report -m