-
Notifications
You must be signed in to change notification settings - Fork 27
53 lines (42 loc) · 1.2 KB
/
Healthcheck tests.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Health Check tests
on:
push:
branches:
- master
paths:
- python/**
- reports/*.qmd
- .github/workflows/**
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- python/**
- reports/*.qmd
- .github/workflows/**
jobs:
HealthCheck-Test:
runs-on: ubuntu-latest
name: Test Health Check
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
steps:
- uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.3.450
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install 3.12
- name: Enable caching
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: |
**/pyproject.toml
- name: Install the project
run: uv sync --extra healthcheck --extra tests
- name: Set up Pandoc
run: sudo apt-get install -y pandoc
- name: Run Health Check
run: uv run pytest python/tests/test_healthcheck.py