Skip to content

Тесты для слоя с БД #6

Тесты для слоя с БД

Тесты для слоя с БД #6

Workflow file for this run

name: Main monitoring_web_resource_bot workflow
on:
push:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8==6.0.0
pip install -r ./bot/requirements.txt
- name: Test with flake8
run: |
python -m flake8 bot/
- name: Test with pytest
env:
TABLE_NAME: ${{ secrets.TABLE_NAME }}
DB_NAME: ${{ secrets.DB_NAME }}
run: |
python -m pytest