install dependencies issue 3 #162
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: debug | |
shell: bash -el {0} | |
run: | | |
which python | |
echo $PATH | |
which conda | |
echo $GITHUB_PATH | |
echo $GITHUB_ENV | |
which python3.8 | |
# - name: Setup Anaconda | |
# run: | | |
# conda install -y conda-build anaconda-client | |
- run: python --version | |
- run: conda --version | |
- run: which conda | |
- name: Setup Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
# - 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: Running conda pre dependiences | |
run: | | |
conda list | |
conda config --show | |
- name: Checkout TorchServe | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
shell: bash -el {0} | |
run: | | |
python ts_scripts/install_dependencies.py --environment=dev --cuda=cu121 | |
- name: debug 2 | |
shell: bash -el {0} | |
run: | | |
echo $PATH | |
which conda | |
echo $GITHUB_PATH | |
echo $GITHUB_ENV | |
which python3.8 | |
conda --version | |
- name: Torchserve Regression Tests | |
run: | | |
conda list | |
conda config --show | |
# python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly |