-
Notifications
You must be signed in to change notification settings - Fork 867
89 lines (80 loc) · 2.71 KB
/
regression_tests_gpu_binaries.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
87
88
89
name: Run Regression Tests for GPU nightly binaries
on:
# run every day at 6:15am
push:
workflow_dispatch:
concurrency:
group: ci-cpu-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }}
cancel-in-progress: true
jobs:
regression-gpu-nightly-binaries:
# creates workflows for OS: ubuntu, macOS
runs-on: [self-hosted, regression-test-gpu]
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
binaries: ["pypi", "conda"]
steps:
- name: Clean up previous run
run: |
echo "Cleaning up previous run"
ls -la ./
sudo rm -rf ./* || true
sudo rm -rf ./.??* || true
ls -la ./
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- name: Setup Anaconda
run: |
conda install -y conda-build anaconda-client
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- run: python --version
- run: conda --version
# - name: Clean up previous run
# run: |
# echo "Cleaning up previous run"
# ls -la ./
# sudo rm -rf ./* || true
# sudo rm -rf ./.??* || true
# ls -la ./
# - name: Setup Python ${{ matrix.python_version }}
# uses: actions/setup-python@v3
# with:
# python-version: ${{ matrix.python-version }}
# architecture: x64
# - uses: conda-incubator/setup-miniconda@v2
# with:
# miniconda-version: "latest"
# - name: Setup conda with Python ${{ matrix.python-version }}
# uses: s-weigand/setup-conda@v1
# with:
# update-conda: true
# python-version: ${{ matrix.python-version }}
# conda-channels: anaconda, conda-forge
# - run: conda --version
# - run: python --version
- name: Checkout TorchServe
uses: actions/checkout@v3
- name: Install dependencies
run: |
python ts_scripts/install_dependencies.py --environment=dev --cuda=cu121
- name: Torchserve Regression Tests
run: |
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly