@@ -79,14 +79,43 @@ jobs:
7979 env :
8080 PYTHONPATH : ${{ github.workspace }}
8181
82- - name : Upload pytorch test result artifact
82+ test-jax :
83+ runs-on : ubuntu-latest
84+ permissions :
85+ checks : write
86+ pull-requests : write
87+
88+ steps :
89+ - name : Check out repository
90+ uses : actions/checkout@v4
91+
92+ - name : Set up Python
93+ uses : actions/setup-python@v4
94+ with :
95+ python-version : " 3.11"
96+
97+ - name : Install dependencies
98+ run : |
99+ python -m pip install --upgrade pip
100+ python -m pip install poetry
101+ poetry env use python
102+ poetry install --extras "healpy_support" --extras "jax_support"
103+
104+ - name : Run tests with jax backend
105+ run : |
106+ export PYRECEST_BACKEND=jax
107+ poetry run python -m pytest --rootdir . -v --strict-config --junitxml=junit_test_results_jax.xml ./pyrecest
108+ env :
109+ PYTHONPATH : ${{ github.workspace }}
110+
111+ - name : Upload jax test result artifact
83112 uses : actions/upload-artifact@v3
84113 with :
85- name : pytorch -test-results
86- path : junit_test_results_pytorch .xml
114+ name : jax -test-results
115+ path : junit_test_results_jax .xml
87116
88117 publish-results :
89- needs : [test-numpy, test-pytorch]
118+ needs : [test-numpy, test-pytorch, test-jax ]
90119 runs-on : ubuntu-latest
91120 if : always()
92121 permissions :
@@ -104,3 +133,4 @@ jobs:
104133 files : |
105134 test-results/numpy-test-results/junit_test_results_numpy.xml
106135 test-results/pytorch-test-results/junit_test_results_pytorch.xml
136+ test-results/pytorch-test-results/junit_test_results_jax.xml
0 commit comments