From 0e5934def6bf4eaf49ca533e32d1621628889be6 Mon Sep 17 00:00:00 2001 From: Felix Koehler Date: Thu, 5 Sep 2024 15:21:23 +0200 Subject: [PATCH 1/2] Use quotes to correctly get 3.10 --- .github/workflows/run_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 2adf218..0e4a3ae 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -7,7 +7,7 @@ jobs: run-test: strategy: matrix: - python-version: [ 3.10, 3.11, 3.12 ] + python-version: [ "3.10", "3.11", "3.12" ] os: [ ubuntu-latest ] fail-fast: false runs-on: ${{ matrix.os }} From 1b2f310ae0b4be97ae96fa6222fc1f14b5ada445 Mon Sep 17 00:00:00 2001 From: Felix Koehler Date: Thu, 5 Sep 2024 15:33:20 +0200 Subject: [PATCH 2/2] Ignore test requiring GPU --- tests/test_viz.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/test_viz.py b/tests/test_viz.py index 045ac57..a06e747 100644 --- a/tests/test_viz.py +++ b/tests/test_viz.py @@ -28,8 +28,10 @@ def test_plot_state_2d(): plt.close(fig) -def test_plot_state_3d(): - state = jax.random.normal(jax.random.PRNGKey(0), (1, 32, 32, 32)) +# # Requires a GPU and therefore cannot easily be tested on GitHub Actions - fig = ex.viz.plot_state_3d(state) - plt.close(fig) +# def test_plot_state_3d(): +# state = jax.random.normal(jax.random.PRNGKey(0), (1, 32, 32, 32)) + +# fig = ex.viz.plot_state_3d(state) +# plt.close(fig)