-
Notifications
You must be signed in to change notification settings - Fork 7
86 lines (80 loc) · 2.83 KB
/
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
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
80
81
82
83
84
85
86
name: Tests
on:
pull_request:
paths:
- .github/workflows/tests.yml
- wandb_addons/**
- pyproject.toml
jobs:
lint:
name: Check linting using black magic
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
run-monai-tests:
name: Check if MonAI tests pass
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
pip install -U pip
pip install .[monai]
python -c "from wandb_addons.monai import WandbStatsHandler, WandbModelCheckpointSaver"
# run-keras-callbacks-tests-tf-backend:
# name: Check if unit-tests for the Keras-Core callbacks pass for TensorFlow backend.
# runs-on: ubuntu-latest
# env:
# WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }}
# container: tensorflow/tensorflow
# steps:
# - uses: actions/checkout@v3
# - run: |
# apt-get update -y
# apt-get install git -y
# pip install -U pip
# pip install ".[keras, test]"
# KERAS_BACKEND="tensorflow" pytest -s ./wandb_addons/tests/keras/
# run-keras-callbacks-tests-torch-backend:
# name: Check if unit-tests for the Keras-Core callbacks pass for PyTorch backend.
# runs-on: ubuntu-latest
# env:
# WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }}
# container: pytorch/pytorch
# steps:
# - uses: actions/checkout@v3
# - run: |
# apt-get update -y
# apt-get install git -y
# pip install -U pip tensorflow-cpu
# pip install ".[keras, test]"
# KERAS_BACKEND="torch" pytest -s ./wandb_addons/tests/keras/
# run-keras-callbacks-tests-jax-backend:
# name: Check if unit-tests for the Keras-Core callbacks pass for Jax backend.
# runs-on: ubuntu-latest
# env:
# WANDB_API_KEY: ${{ secrets.WANDB_API_KEY }}
# container: tensorflow/tensorflow
# steps:
# - uses: actions/checkout@v3
# - run: |
# apt-get update -y
# apt-get install git -y
# pip install -U pip
# pip install "jax[cpu]"
# pip install ".[keras, test]"
# KERAS_BACKEND="jax" pytest -s ./wandb_addons/tests/keras/
run-huggingface-test:
name: Check if HuggingFace tests pass
runs-on: ubuntu-latest
container: pytorch/pytorch
steps:
- uses: actions/checkout@v3
- run: |
pip install -U pip
pip install ".[huggingface]"
python -c "from wandb_addons.diffusers import IFCallback"
python -c "from wandb_addons.diffusers import KandinskyCallback"
python -c "from wandb_addons.diffusers import StableDiffusionCallback"
python -c "from wandb_addons.diffusers import StableDiffusionImg2ImgCallback"
python -c "from wandb_addons.diffusers import StableDiffusionXLCallback"