-
Notifications
You must be signed in to change notification settings - Fork 197
40 lines (33 loc) · 1015 Bytes
/
unittest-gpu.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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: unittest-gpu
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
unittest:
runs-on: [self-hosted, linux, GPU]
defaults:
run:
working-directory: ./${{ github.event.pull_request.head.ref }}
environment: Testing
steps:
- uses: actions/checkout@v3
- name: Setup docker compose
working-directory: .github/workflows/docker
run: |
docker compose up -d
- name: Install data-juicer
working-directory: .github/workflows/docker
run: |
docker compose exec ray-head pip install -e .\[all\]
- name: Remove docker compose
working-directory: .github/workflows/docker
if: always()
run: |
docker compose down --remove-orphans