Skip to content

feature: re-arrange message models to handle images #74

feature: re-arrange message models to handle images

feature: re-arrange message models to handle images #74

Workflow file for this run

name: "🎳 Test"
on:
push:
branches:
- main
paths:
- "**/*.py"
- ".github/workflows/tests.yml"
pull_request:
branches:
- main
paths:
- "**/*.py"
- ".github/workflows/tests.yml"
- "pyproject.toml"
- "poetry.lock"
jobs:
unit-test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runs-on: ${{ matrix.os }}
steps:
- name: Get source code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "poetry.lock"
- name: Install poetry
uses: snok/install-poetry@v1
with:
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: ~/.venv
installer-parallel: true
- name: Install requirements
run: poetry install
- name: Unit tests
run: poetry run pytest -v --cov --cov-report xml:coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.5.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
with:
env_vars: OS,PYTHON
flags: unittests
name: Code Coverage for unittests on [${{ matrix.os }}.python-${{ matrix.python-version }}]