-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (33 loc) · 1.13 KB
/
pyatlan-test-cron.yaml
File metadata and controls
40 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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@v7
- 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