Skip to content

Pyatlan Test Cron Job Build #627

Pyatlan Test Cron Job Build

Pyatlan Test Cron Job Build #627

name: Pyatlan Test Cron Job Build
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *' # At 01:00 Daily
jobs:
build:
concurrency: integration_tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.12]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install dependencies
run: uv sync --group dev
- name: QA checks (ruff-format, ruff-lint, mypy)
run: uv run ./qa-checks
- name: Test with pytest
env: # Or as an environment variable
ATLAN_API_KEY: ${{ secrets.ATLAN_API_KEY }}
ATLAN_BASE_URL: ${{ secrets.ATLAN_BASE_URL }}
# Run the integration test suite using the `pytest-timer` plugin
# to display only the durations of the 25 slowest tests with `pytest-sugar`
run: |
uv run pytest tests/unit
uv run pytest tests/integration -p name_of_plugin --timer-top-n 25 -vv