Skip to content

Merge pull request #690 from Whist-Team/dependabot/pip/pytest-asyncio… #1043

Merge pull request #690 from Whist-Team/dependabot/pip/pytest-asyncio…

Merge pull request #690 from Whist-Team/dependabot/pip/pytest-asyncio… #1043

Workflow file for this run

name: Python CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
unittest:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: Whist-Team/actions/setup-poetry@v2
with:
python-version: ${{ matrix.python-version }}
- name: 'unit test with pytest'
run: 'poetry run python -m pytest -m "not integtest"'
integrationtest:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
mongodb-version: [ '6.0', '7.0', '8.0' ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: Whist-Team/actions/setup-poetry@v2
with:
python-version: ${{ matrix.python-version }}
- name: Start MongoDB
uses: supercharge/mongodb-github-action@v1
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: 'integration test with pytest'
run: 'poetry run python -m pytest -m "integtest"'