Skip to content

Commit

Permalink
Linux validation binaries (conda, wheel, libtorch) (#1117)
Browse files Browse the repository at this point in the history
* Adding conda validation

* Dedicate environment creation and activation to action

* Using single step for conda install and run

* Put conda install on top of the list

* Run python from conda

* run pythonf from conda

* Testing conda

* Refactoring step

* Going back to environment creation in run

* Add wheels and libtorch workflows

* Fix depends name

* Fix libtorch path

* Fix matrix naming

* Test

* Test

* Using composite action

* Move wheel to composite as well
  • Loading branch information
atalman committed Sep 1, 2022
1 parent 79a5021 commit 03c4b2e
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .github/workflows/validate-linux-binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Validate binary images

on:
push:
branches:
main
paths:
- .github/workflows/validate-linux-binaries.yml
pull_request:
paths:
- .github/workflows/validate-linux-binaries.yml
jobs:
generate-conda-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: conda
os: linux
channel: nightly
generate-wheel-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: wheel
os: linux
channel: nightly
generate-libtorch-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
with:
package-type: libtorch
os: linux
channel: nightly
validate-linux-binaries-conda:
needs: generate-conda-matrix
strategy:
matrix:
${{ fromJson(needs.generate-conda-matrix.outputs.matrix) }}
fail-fast: false
runs-on: ${{ matrix.validation_runner }}
steps:
- name: Checkout PyTorch builder
uses: actions/checkout@v2
- name: Validate binary conda
uses: ./.github/actions/validate-linux-binary
with:
gpu_arch_type: ${{ matrix.gpu_arch_type }}
gpu_arch_ver: ${{ matrix.gpu_arch_version }}
installation: ${{ matrix.installation }}
python_version: ${{ matrix.python_version }}
validate-linux-binaries-wheels:
needs: generate-wheel-matrix
strategy:
matrix:
${{ fromJson(needs.generate-wheel-matrix.outputs.matrix) }}
fail-fast: false
runs-on: ${{ matrix.validation_runner }}
steps:
- name: Checkout PyTorch builder
uses: actions/checkout@v2
- name: Validate binary wheel
uses: ./.github/actions/validate-linux-binary
with:
gpu_arch_type: ${{ matrix.gpu_arch_type }}
gpu_arch_ver: ${{ matrix.gpu_arch_version }}
installation: ${{ matrix.installation }}
python_version: ${{ matrix.python_version }}
validate-linux-libtorch-binaries:
needs: generate-libtorch-matrix
strategy:
matrix:
${{ fromJson(needs.generate-libtorch-matrix.outputs.matrix) }}
fail-fast: false
runs-on: "ubuntu-20.04"
env:
PYTHON_VERSION: ${{ matrix.python_version }}
steps:
- name: Checkout PyTorch builder
uses: actions/checkout@v2
- name: Install pytorch and smoke test
env:
INSTALLATION: ${{ matrix.installation }}
ENV_NAME: conda-env-${{ github.run_id }}
run: |
sudo apt-get install unzip -y
set -ex
curl ${INSTALLATION} -o libtorch.zip
unzip libtorch.zip

0 comments on commit 03c4b2e

Please sign in to comment.