fix compatibility with newer versions of pytest-asyncio #172
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: (MacOS) yandex-taxi-testsuite package tests | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install database dependencies | |
run: | | |
brew tap mongodb/brew | |
brew update | |
brew install redis clickhouse rabbitmq postgresql mariadb kafka mongodb-community | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install python dependencies | |
run: | | |
brew install pytest virtualenv | |
make setup-dev-venv | |
- name: Lint with Ruff | |
run: | | |
make venv-check-linters | |
- name: Check formatting with Ruff | |
run: | | |
make venv-check-format | |
- name: Check with MyPy | |
run: | | |
make venv-check-mypy | |
- name: Test with pytest | |
env: | |
TESTSUITE_ALLOW_ROOT: 1 | |
TESTSUITE_DEBUG: 1 | |
PYTEST_ARGS: "-vvs" | |
run: | | |
make venv-tests | |
- name: Run examples tests | |
env: | |
TESTSUITE_ALLOW_ROOT: 1 | |
TESTSUITE_DEBUG: 1 | |
PYTEST: pytest | |
PYTEST_ARGS: "-vvs" | |
run: | | |
make venv-test-examples | |
- name: Build documentation | |
if: matrix.python-version != '3.13' | |
run: | | |
make build-docs |