Skip to content

Update build.yml

Update build.yml #21

Workflow file for this run

name: Unit tests
# 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@v4
with:
python-version: '3.10.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r app/requirements.txt
pip install -r requirements-dev.txt
- name: Check for syntax errors or undefined names
run: |
flake8 app tests --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Test with pytest
run: |
pytest