diff --git a/.github/workflows/runtests.yml b/.github/workflows/runtests.yml index f47568e..50eb019 100644 --- a/.github/workflows/runtests.yml +++ b/.github/workflows/runtests.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-20.04 strategy: fail-fast: false + matrix: + python: ['3.7', '3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v2 @@ -22,6 +24,8 @@ jobs: cache-env: true environment-file: yeadon-dev-env.yml environment-name: yeadon-dev + extrax-specs: | + python=${{ matrix.python }} - name: Run the tests shell: bash -l {0} diff --git a/yeadon-dev-env.yml b/yeadon-dev-env.yml index 0ec834e..8bea398 100644 --- a/yeadon-dev-env.yml +++ b/yeadon-dev-env.yml @@ -6,7 +6,6 @@ dependencies: - nose - numpy >=1.6.1 - numpydoc - - python =3.7.* - pyyaml >=3.10 - setuptools - sphinx diff --git a/yeadon/tests/test_inertia.py b/yeadon/tests/test_inertia.py index 04a8c3e..b477283 100644 --- a/yeadon/tests/test_inertia.py +++ b/yeadon/tests/test_inertia.py @@ -157,4 +157,4 @@ def test_rotate_inertia(): [0.0, 0.0, 0.0], [0.0, 0.0, 10.0]]) - testing.assert_allclose(I_b, expected_I_b, atol=1e-16) + testing.assert_allclose(I_b, expected_I_b, atol=1e-14) diff --git a/yeadon/tests/test_segment.py b/yeadon/tests/test_segment.py index 2de6f56..e259c53 100644 --- a/yeadon/tests/test_segment.py +++ b/yeadon/tests/test_segment.py @@ -275,4 +275,4 @@ def test_rotate_inertia(self): [0.0, 0.0, 0.0], [0.0, 0.0, 10.0]]) - testing.assert_allclose(I_b, expected_I_b, atol=1e-16) + testing.assert_allclose(I_b, expected_I_b, atol=1e-14) diff --git a/yeadon/tests/test_solid.py b/yeadon/tests/test_solid.py index 866950a..04ccd49 100644 --- a/yeadon/tests/test_solid.py +++ b/yeadon/tests/test_solid.py @@ -524,4 +524,4 @@ def test_rotate_inertia(): [0.0, 0.0, 0.0], [0.0, 0.0, 10.0]]) - testing.assert_allclose(I_b, expected_I_b, atol=1e-16) + testing.assert_allclose(I_b, expected_I_b, atol=1e-14)