Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-22.04, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
# https://devguide.python.org/versions/
python-version: ["3.10", "3.11", "3.12", "3.13"]
exclude:
- os: windows-latest
python-version: "3.11"
- os: windows-latest
python-version: "3.12"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand All @@ -36,21 +37,21 @@ jobs:
pip install .[dev]
- name: Test with pytest
env:
MPLBACKEND: TkAgg
MPLBACKEND: Agg
run: |
pytest -s --ignore=W605 --timeout=50 --timeout_method=thread
pytest -s --timeout=50 --timeout_method=thread

codecov:
# If all tests pass:
# Run coverage and upload to codecov
needs: unittest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -61,7 +62,7 @@ jobs:
coverage report
coverage xml
- name: upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
sphinx:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
max-parallel: 2
matrix:
os: [ubuntu-22.04]
python-version: [3.8]
python-version: [3.12]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
runs-on: ubuntu-22.04
if: ${{ github.event_name != 'pull_request' }}
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
11 changes: 7 additions & 4 deletions tests/base/test_transforms3d_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from math import pi
import math
from scipy.linalg import logm, expm
import os
import pytest
import sys

Expand All @@ -25,8 +26,9 @@

class Test3D(unittest.TestCase):
@pytest.mark.skipif(
sys.platform.startswith("darwin") and sys.version_info < (3, 11),
reason="tkinter bug with mac",
os.environ.get("CI") == "true"
or (sys.platform.startswith("darwin") and sys.version_info < (3, 11)),
reason="no display in CI / tkinter bug on mac",
)
def test_plot(self):
plt.figure()
Expand Down Expand Up @@ -72,8 +74,9 @@ def test_plot(self):
plt.close("all")

@pytest.mark.skipif(
sys.platform.startswith("darwin") and sys.version_info < (3, 11),
reason="tkinter bug with mac",
os.environ.get("CI") == "true"
or (sys.platform.startswith("darwin") and sys.version_info < (3, 11)),
reason="no display in CI / tkinter bug on mac",
)
def test_animate(self):
tranimate(transl(1, 2, 3), repeat=False, wait=True)
Expand Down
Loading