Skip to content

fix: Fix the resuming of MongoDB change streams in log-based replication mode #82

fix: Fix the resuming of MongoDB change streams in log-based replication mode

fix: Fix the resuming of MongoDB change streams in log-based replication mode #82

Workflow file for this run

name: Test tap-mongodb
on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- edited
- reopened
- synchronize
jobs:
pre-commit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- 3.8
- 3.9
- '3.10'
- 3.11
- 3.12
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Install dependencies
run: poetry install
- name: Run pre-commit checks
uses: pre-commit/action@v3.0.0
smoke-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- 3.8
- 3.9
- '3.10'
- 3.11
- 3.12
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Install meltano
run: pipx install meltano
- name: Meltano install
run: meltano install
- name: Smoke test
run: meltano invoke tap-mongodb --about
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mongo-version:
- 3.6
- 4.4
python-version:
- 3.8
- 3.9
- '3.10'
- 3.11
- 3.12
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Install dependencies
run: poetry install
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.9.0
with:
mongodb-version: ${{ matrix.mongo-version }}
mongodb-username: admin
mongodb-password: password
mongodb-db: test
- name: Test with pytest
run: poetry run pytest