Skip to content

Merge pull request #14 from vidok/vidok/add-user-agent-to-es-client #87

Merge pull request #14 from vidok/vidok/add-user-agent-to-es-client

Merge pull request #14 from vidok/vidok/add-user-agent-to-es-client #87

Workflow file for this run

name: tests
on: [push]
jobs:
linting:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python '${{ matrix.python-version }}'
uses: actions/setup-python@v2
with:
python-version: '${{ matrix.python-version }}'
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry==1.6.*
- name: Install dependencies
run: |
poetry install
- name: Run pre-commit
run: |
poetry run pre-commit install
poetry run pre-commit run --all-files
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python '${{ matrix.python-version }}'
uses: actions/setup-python@v2
with:
python-version: '${{ matrix.python-version }}'
- name: Install Poetry
run: |
pip install typing-extensions
python -m pip install --upgrade pip
pip install poetry==1.6.*
- name: Install dependencies
run: |
poetry install
- name: Test with pytest
run: |
poetry run pytest --capture=no
integration:
runs-on: ubuntu-latest
env:
python-version: "3.9"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install meltano
meltano install
- name: smoke-test-tap
run: |
docker-compose up -d elasticsearch
sleep 30
meltano run tap-smoke-test target-elasticsearch