-
Notifications
You must be signed in to change notification settings - Fork 28
43 lines (33 loc) · 973 Bytes
/
test.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
name: Run tests
on:
workflow_dispatch:
workflow_call:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: uv sync
run: uv sync --extra skypilot
- shell: bash
run: |
git config --global user.name github-actions[bot]
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Run tests
run: uv run -- pytest test/
- name: Run coverage
run: |
uv run -- coverage run -m pytest
uv run -- coverage report -m
- name: Run example notebooks
run: uv run -- jupyter execute examples/**/*.ipynb
- name: Run example scripts
run: |
cd examples/hello-world && uv run -- python hello_scripts.py