Fix a bug in convolution for torch_xla2. Enable tests #1
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
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- r[0-9]+.[0-9]+ | ||
paths: | ||
- 'experimental/torch_xla2/**' | ||
push: | ||
branches: | ||
- master | ||
- r[0-9]+.[0-9]+ | ||
paths: | ||
- 'experimental/torch_xla2/**' | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }} | ||
cancel-in-progress: true | ||
jobs: | ||
test-cpu: | ||
name: "TorchXLA2 tests" | ||
steps: | ||
- name: Setup Linux | ||
uses: pytorch/test-infra/.github/actions/setup-linux@main | ||
- name: Setup SSH (Click me for login details) | ||
uses: pytorch/test-infra/.github/actions/setup-ssh@main | ||
with: | ||
github-secret: ${{ secrets.GITHUB_TOKEN }} | ||
instructions: | | ||
Build is done inside the container, to start an interactive session run: | ||
docker exec -it $(docker container ps --format '{{.ID}}') bash | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: | | ||
experimental/torch_xla2/** | ||
- name: Install | ||
shell: bash | ||
working-directory: experimental/torch_xla2 | ||
run: | | ||
pip install -e . | ||
pip install pytest | ||
- name: Run tests | ||
working-directory: experimental/torch_xla2 | ||
shell: bash | ||
run: | | ||
pytest test/ | ||
- name: Teardown Linux | ||
uses: pytorch/test-infra/.github/actions/teardown-linux@main | ||
if: always() |