Remove env variable and use torch API to get HPU distributed backend … #643
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: General checks | |
on: | |
push: | |
branches: [main, "release/*"] | |
pull_request: | |
branches: [main, "release/*"] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }} | |
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) }} | |
jobs: | |
check-code: | |
uses: Lightning-AI/utilities/.github/workflows/check-code.yml@main | |
with: | |
actions-ref: main | |
extra-typing: typing | |
check-schema: | |
uses: Lightning-AI/utilities/.github/workflows/check-schema.yml@main | |
with: | |
azure-dir: ".azure" | |
check-package: | |
uses: Lightning-AI/utilities/.github/workflows/check-package.yml@main | |
with: | |
actions-ref: main | |
import-name: "lightning_habana" | |
# install also lightning package so this sample import won't crash, also consistent with readme instructions | |
install-flags: '"pytorch-lightning>=2.0.0"' | |
artifact-name: dist-packages-${{ github.sha }} | |
testing-matrix: | | |
{ | |
"os": ["ubuntu-latest"], | |
"python-version": ["3.9"] | |
} | |
check-docs: | |
uses: Lightning-AI/utilities/.github/workflows/check-docs.yml@main | |
with: | |
requirements-file: "_requirements/docs.txt" |