Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
qihqi committed Jan 22, 2025
1 parent c3d8a34 commit 6822925
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
- r[0-9]+.[0-9]+
paths-ignore:
- 'experimental/**'
- 'torchax/**'
push:
branches:
- master
- r[0-9]+.[0-9]+
paths-ignore:
- 'experimental/**'
- 'torchax/**'
workflow_dispatch:

concurrency:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_upstream_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- r[0-9]+.[0-9]+
paths-ignore:
- 'experimental/**'
- 'torchax/**'
workflow_dispatch:
jobs:
build:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/torch_xla2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on:
- master
- r[0-9]+.[0-9]+
paths:
- 'experimental/torch_xla2/**'
- 'torchax/**'
push:
branches:
- master
- r[0-9]+.[0-9]+
paths:
- 'experimental/torch_xla2/**'
- 'torchax/**'
workflow_dispatch:

concurrency:
Expand All @@ -28,20 +28,20 @@ jobs:
uses: actions/checkout@v4
with:
sparse-checkout: |
experimental/torch_xla2
torchax
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install
shell: bash
working-directory: experimental/torch_xla2
working-directory: torchax
run: |
pip install -r test-requirements.txt
pip install -e .[cpu]
pip install tensorflow-cpu # for TF integrations tests
- name: Run tests
working-directory: experimental/torch_xla2
working-directory: torchax
shell: bash
run: |
pytest test/
Expand Down

0 comments on commit 6822925

Please sign in to comment.