Skip to content

[#161] refactoring database.py #118

[#161] refactoring database.py

[#161] refactoring database.py #118

Workflow file for this run

---
name: Run Unit & Integration tests
on:
workflow_call:
pull_request:
branches:
- develop
- master
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ^3.10
cache: "pip"
- name: Install dependencies
run: |-
pip3 install poetry
poetry lock --no-update
poetry export --dev -f requirements.txt | pip3 install -r /dev/stdin
- name: Perform Code Linting
run: make lint
unit-tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ^3.10
cache: "pip"
- name: Install dependencies
run: |-
pip3 install poetry
poetry lock --no-update
poetry export --dev -f requirements.txt | pip3 install -r /dev/stdin
- name: Execute Unit Test Suite
run: make unit-tests
coverage:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ^3.10
cache: "pip"
- name: Install dependencies
run: |-
pip3 install poetry
poetry lock --no-update
poetry export --dev -f requirements.txt | pip3 install -r /dev/stdin
- name: Generate Coverage Report
run: make unit-tests-coverage
integration-tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ^3.10
cache: "pip"
- name: Install dependencies
run: |-
pip3 install poetry
poetry lock --no-update
poetry export --dev -f requirements.txt | pip3 install -r /dev/stdin
- name: Perform Integration Testing
run: make integration-tests