Add timestamp support in send and send_batch #128
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
name: tembo-pgmq-python CI workflow | |
defaults: | |
run: | |
shell: bash | |
working-directory: tembo-pgmq-python | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/pgmq_python.yml" | |
- "tembo-pgmq-python/tembo_pgmq_python/**" | |
- "tembo-pgmq-python/tests/**" | |
- "tembo-pgmq-python/pyproject.toml" | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/pgmq_python.yml" | |
- "tembo-pgmq-python/tembo_pgmq_python/**" | |
- "tembo-pgmq-python/tests/**" | |
- "tembo-pgmq-python/pyproject.toml" | |
jobs: | |
lints: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11.0 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11.0 | |
- name: Install dependencies | |
run: | | |
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.7.1 python3 - | |
poetry install | |
- name: Lints / Type Checking | |
run: make lints | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11.0 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11.0 | |
- name: Install dependencies | |
run: | | |
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.7.1 python3 - | |
poetry install --extras "async" | |
- name: Unit and Integration Tests | |
run: make test | |
publish: | |
runs-on: ubuntu-latest | |
# only publish off main branch | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11.0 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11.0 | |
- name: Install dependencies | |
run: | | |
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.7.1 python3 - | |
poetry install | |
- name: Publish | |
env: | |
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} | |
run: | | |
poetry publish --build --skip-existing |