Skip to content

refactor(core): Full hexagonal architecture modularization, secure session handler & mock testing suite #2

refactor(core): Full hexagonal architecture modularization, secure session handler & mock testing suite

refactor(core): Full hexagonal architecture modularization, secure session handler & mock testing suite #2

Workflow file for this run

name: Python Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
name: Run Pytest
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13']
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install Pytest & Dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-asyncio
# Install current package to test domain correctly
pip install -e .
- name: Run Tests
env:
PYTHONPATH: src
TELEGRAM_API_ID: "123456"
TELEGRAM_API_HASH: "dummy_hash"
run: |
pytest tests/