Skip to content

Commit

Permalink
test: update all transpiler tests to run on both python 3.10 and 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong committed Feb 20, 2025
1 parent 4fdcfbe commit 13d6cb7
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/test-transpiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
jobs:

transformations:
strategy:
matrix:
python-version: ["3.10", "3.12"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -18,14 +21,17 @@ jobs:
persist-credentials: false
- uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: ${{ matrix.python-version }}
- name: Run Transformations Tests
id: tests
run: |
cd ivy
docker run --rm -v "$(pwd)":/ivy ivyllc/ivy:latest scripts/shell/run_transpiler_tests.sh transformations
translations:
strategy:
matrix:
python-version: ["3.10", "3.12"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -34,14 +40,17 @@ jobs:
persist-credentials: false
- uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: ${{ matrix.python-version }}
- name: Run Translations Tests
id: tests
run: |
cd ivy
docker run --rm -v "$(pwd)":/ivy ivyllc/ivy:latest scripts/shell/run_transpiler_tests.sh translations
module:
strategy:
matrix:
python-version: ["3.10", "3.12"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -50,15 +59,17 @@ jobs:
persist-credentials: false
- uses: actions/setup-python@v3
with:
python-version: "3.10"

python-version: ${{ matrix.python-version }}
- name: Run Module Tests
id: tests
run: |
cd ivy
docker run --rm -v "$(pwd)":/ivy ivyllc/ivy:latest scripts/shell/run_transpiler_tests.sh module
sourcegen:
strategy:
matrix:
python-version: ["3.10", "3.12"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -67,14 +78,17 @@ jobs:
persist-credentials: false
- uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: ${{ matrix.python-version }}
- name: Run SourceGen Tests
id: tests
run: |
cd ivy
docker run --rm -v "$(pwd)":/ivy ivyllc/ivy:latest scripts/shell/run_transpiler_tests.sh sourcegen
hf:
strategy:
matrix:
python-version: ["3.10", "3.12"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -83,7 +97,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: ${{ matrix.python-version }}
- name: Run HuggingFace Tests
id: tests
run: |
Expand Down

0 comments on commit 13d6cb7

Please sign in to comment.