diff --git a/.github/workflows/test-with-tox.yaml b/.github/workflows/test-with-tox.yaml index 30effb9..521e731 100644 --- a/.github/workflows/test-with-tox.yaml +++ b/.github/workflows/test-with-tox.yaml @@ -37,12 +37,16 @@ jobs: if: matrix.platform == 'ubuntu-22.04' && matrix.python-version == 3.9 run: | pip install pandas tensorflow torch tensorboardX pillow matplotlib soundfile pytest pytest-cov + # For NumPy 2.0 compatibility, see: https://github.com/tensorflow/tensorboard/issues/6869 + pip install tb-nightly pytest --doctest-glob="*.rst" --cov=./ --cov-report xml --ignore="tests/test_summary_reader/test_no_tensorflow.py" - name: Test documentation if: matrix.platform == 'ubuntu-22.04' && matrix.python-version == 3.9 run: | sudo apt-get install -y pandoc pip install -r requirements.txt + # For NumPy 2.0 compatibility, see: https://github.com/tensorflow/tensorboard/issues/6869 + pip install tb-nightly sphinx-build -b html docs docs/_build/html sphinx-build -b doctest docs docs/_build/doctest - name: Upload coverage to Codecov diff --git a/tox.ini b/tox.ini index 7c1c9ad..64f3111 100644 --- a/tox.ini +++ b/tox.ini @@ -17,6 +17,8 @@ deps = commands = # Test tbparse with reduced feature set (without TensorFlow) pip install -e .[testing] + # For NumPy 2.0 compatibility, see: https://github.com/tensorflow/tensorboard/issues/6869 + pip install tb-nightly # May need to clean tox cache if the command below failed. pytest "{toxinidir}/tests/test_summary_reader/test_edge_cases.py" \ "{toxinidir}/tests/test_summary_reader/test_histogram_torch_sample.py" \