-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (62 loc) · 2.45 KB
/
Copy pathintegration.yaml
File metadata and controls
79 lines (62 loc) · 2.45 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# This workflow will install Python dependencies and run the integration tests
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Integration Tests
on:
push:
branches:
- main
- prod
paths-ignore:
- 'docs/**'
permissions:
contents: read
jobs:
integration:
runs-on:
group: ubuntu-vm-large
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install Python Dependencies
run: |
uv sync --extra huggingface --extra llm --group dev
uv pip install torch==2.0.1 --extra-index-url https://download.pytorch.org/whl/cpu
uv pip install aequitas fairlearn vl-convert-python
- name: Install R Dependencies
run: |
sudo apt-get update
sudo apt install r-base r-base-dev
- name: Build the package
run: uv build
- name: Remove Build Environment
run: rm -rf .venv
- name: 'Setup Virtual Environment for [all]'
run: python -m venv all-venv
# This proves that the [all] install target works
- name: 'Install Built Package for [all]'
run: all-venv/bin/pip install --no-cache-dir "$(ls dist/validmind*.whl | head -n 1)[all]"
- name: Install Additional Dependencies
run: all-venv/bin/pip install nbformat papermill jupyter
- name: Create Jupyter Kernel
run: all-venv/bin/python -m ipykernel install --user --name all-venv
- name: Integration Tests
run: all-venv/bin/python scripts/run_e2e_notebooks.py --kernel all-venv
env:
NOTEBOOK_RUNNER_DEFAULT_MODEL: ${{ secrets.NOTEBOOK_RUNNER_DEFAULT_PROJECT_ID }}
NOTEBOOK_RUNNER_API_KEY: ${{ secrets.NOTEBOOK_RUNNER_API_KEY }}
NOTEBOOK_RUNNER_API_SECRET: ${{ secrets.NOTEBOOK_RUNNER_API_SECRET }}
NOTEBOOK_RUNNER_API_HOST: 'https://app.dev.vm.validmind.ai/api/v1/tracking'
VALIDMIND_LLM_DESCRIPTIONS_ENABLED: 0
- name: Failure Notification
if: failure()
run: |
curl https://hooks.slack.com/triggers/T0313C4GBC5/6083618566112/${{ secrets.NOTEBOOK_RUNNER_HOOK_ID }}
env:
NOTEBOOK_RUNNER_HOOK_ID: ${{ secrets.NOTEBOOK_RUNNER_HOOK_ID }}