forked from mosaicml/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (55 loc) · 1.65 KB
/
test.yaml
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
name: Test
on:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
- release/*
workflow_dispatch: {}
defaults:
run:
working-directory: .
jobs:
pytest:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
include:
- name: bert-pytest
container: mosaicml/pytorch:1.13.1_cpu-python3.10-ubuntu20.04
subdir: bert
- name: resnet-cifar-pytest
container: mosaicml/pytorch_vision:1.13.1_cpu-python3.10-ubuntu20.04
subdir: resnet_cifar
- name: deeplab-pytest
container: mosaicml/pytorch_vision:1.13.1_cpu-python3.10-ubuntu20.04
subdir: deeplab
- name: llm-pytest
container: mosaicml/pytorch:1.13.1_cpu-python3.10-ubuntu20.04
subdir: llm
- name: resnet-imagenet-pytest
container: mosaicml/pytorch_vision:1.13.1_cpu-python3.10-ubuntu20.04
subdir: resnet_imagenet
- name: stable-diffusion-pytest
container: mosaicml/pytorch:1.13.1_cpu-python3.10-ubuntu20.04
subdir: stable_diffusion
- name: stable-diffusion-dreambooth-pytest
container: mosaicml/pytorch:1.13.1_cpu-python3.10-ubuntu20.04
subdir: stable_diffusion_dreambooth
name: ${{ matrix.name }}
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v3
- name: Setup
run: |
set -ex
export PATH=/composer-python:$PATH
python -m pip install --upgrade 'pip<23' wheel
- name: Test
run: |
export PATH=/composer-python:$PATH
bash scripts/test_subdirectory.sh ${{ matrix.subdir }}