Skip to content

Fixed ci/cd

Fixed ci/cd #80

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
workflow_dispatch:
jobs:
tests:
name: Tests
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
env:
VENV_BIN: ${{ startsWith(matrix.os, 'windows') && 'Scripts' || 'bin' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Install dependencies on Python ${{ matrix.python-version }} on ${{ matrix.os }}
run: pip install --editable .[dev,redis,mongo,sqlalchemy]
- name: Lint code on Python ${{ matrix.python-version }} on ${{ matrix.os }}
run: make lint
- name: Check installable on Python ${{ matrix.python-version }} on ${{ matrix.os }}
run: |
pip install build
python -m build --wheel
python -m venv ./venv
./venv/${{ env.VENV_BIN }}/pip install ./dist/*.whl
./venv/${{ env.VENV_BIN }}/python -c 'import aiogram_broadcaster; print(aiogram_broadcaster.__version__)'