test-ci/.woodpecker.yml

44 lines
968 B
YAML
Raw Normal View History

2023-11-28 12:36:54 +00:00
steps:
2023-01-17 15:51:35 +00:00
first-job:
image: busybox
commands:
2023-01-19 14:14:03 +00:00
- echo "ci working................. "
2023-11-28 13:25:41 +00:00
# cpu:
# image: progrium/stress:latest
# commands: /usr/bin/stress --cpu 20 --io 1 --vm 2 --vm-bytes 128M --timeout 90s
2023-01-18 09:21:16 +00:00
nvidia-test:
image: nvidia/cuda:11.6.2-base-ubuntu20.04
commands:
- nvidia-smi
2023-11-28 13:45:48 +00:00
# environment:
# - NVIDIA_VISIBLE_DEVICES=all
2023-11-28 13:48:30 +00:00
backend_options:
kubernetes:
resources:
2023-11-28 13:50:43 +00:00
requests:
2023-11-28 13:48:30 +00:00
limits:
nvidia.com/mig-2g.20gb: 1
2023-01-17 18:13:08 +00:00
gpu:
image: oguzpastirmaci/gpu-burn:latest
2023-11-28 13:45:48 +00:00
# environment:
# - NVIDIA_VISIBLE_DEVICES=all
2023-01-17 18:13:08 +00:00
commands:
2023-01-17 18:13:57 +00:00
- cd /app
2023-01-17 18:13:08 +00:00
- ./gpu_burn 120
2023-01-19 07:43:07 +00:00
- echo "burned. done"
2023-11-28 13:48:30 +00:00
backend_options:
kubernetes:
resources:
2023-11-28 13:50:43 +00:00
requests:
2023-11-28 13:48:30 +00:00
limits:
nvidia.com/mig-2g.20gb: 1
2023-01-17 17:44:05 +00:00
# 2nd:
# image: oguzpastirmaci/gpu-burn:latest
# environment:
# - NVIDIA_VISIBLE_DEVICES=all
# commands:
# - ./gpu_burn 60
2023-01-17 18:13:08 +00:00
2023-01-19 07:36:27 +00:00