Skip to content

reconnect to database on update signal #31

reconnect to database on update signal

reconnect to database on update signal #31

Workflow file for this run

name: tests
on:
# Triggers the workflow on a push event for the development and main branches
push:
branches:
- development
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# This workflow contains a single job with a job_id "build"
build:
name: Run tests
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Using multiple Python versions
strategy:
matrix:
python-version: ["3.10", "3.11", "3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pytest pytest-md pytest-cov
pip install .
- name: Perform tests and collect coverage
uses: pavelzw/pytest-action@v2
with:
emoji: false
verbose: true
job-summary: true
custom-arguments: "--cov innov8"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}