Skip to content

Update readme dev commands #5

Update readme dev commands

Update readme dev commands #5

Workflow file for this run

name: Test
# Controls when the workflow will run
on:
push:
branches:
- '*'
tags:
- 'v*.*.*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10.x'
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libmariadb-dev
python -m pip install --upgrade pip
pip install -r flask/src/requirements.txt
pip install -r flask/requirements-dev.txt
- name: Check for syntax errors or undefined names
run: |
flake8 flask/src flask/tests --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Unit tests with pytest
run: |
pytest
- name: Lint with flake8
run: |
flake8 --ignore=E501,W293 flask/src flask/tests --show-source