Skip to content

Bump fastapi from 0.115.6 to 0.115.7 in /back #429

Bump fastapi from 0.115.6 to 0.115.7 in /back

Bump fastapi from 0.115.6 to 0.115.7 in /back #429

Workflow file for this run

name: Testing backend
on:
workflow_dispatch:
push:
branches:
- dev
paths:
- "back/**"
pull_request:
branches:
- dev
paths:
- "back/**"
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
back:
name: Test (red, py, moss)
runs-on: ubuntu-latest
strategy:
matrix:
redis-version: [6]
python-version: [3.12]
mosquitto-version: [2.0]
steps:
- uses: actions/checkout@v3
- name: Start Redis ${{ matrix.redis-version }}
uses: supercharge/[email protected]
with:
redis-version: ${{ matrix.redis-version }}
- name: Start MongoDB
uses: supercharge/[email protected]
- name: Start Mosquitto broker
uses: Namoshek/mosquitto-github-action@v1
with:
version: ${{ matrix.mosquitto-version }}
ports: '1883:1883'
password-file: ${{ github.workspace }}/configuration_templates/mosquitto_passwd
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -r requirements.txt
working-directory: ./back
- name: Install Pytest
run: pip install pytest
working-directory: ./back
- name: Test
run: pytest -v -s tests/unit_tests
working-directory: ./back