Skip to content

Commit

Permalink
Merge pull request #134 from moorepants/ci-pythons
Browse files Browse the repository at this point in the history
Run CI on Python 3.7-3.10.
  • Loading branch information
moorepants authored Oct 18, 2022
2 parents 49f5a7d + 2f6f165 commit b929be5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/runtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
Expand Down
1 change: 0 additions & 1 deletion yeadon-dev-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ dependencies:
- nose
- numpy >=1.6.1
- numpydoc
- python =3.7.*
- pyyaml >=3.10
- setuptools
- sphinx
2 changes: 1 addition & 1 deletion yeadon/tests/test_inertia.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion yeadon/tests/test_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion yeadon/tests/test_solid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit b929be5

Please sign in to comment.