diff --git a/README.rst b/README.rst index 5c934a5..0eaf603 100644 --- a/README.rst +++ b/README.rst @@ -5,8 +5,8 @@ sphinx-runpython: run python code in sphinx =========================================== -.. image:: https://dev.azure.com/xavierdupre3/sphinx-runpython/_apis/build/status/sdpython.sphinx-runpython - :target: https://dev.azure.com/xavierdupre3/sphinx-runpython/ +.. image:: https://github.com/sdpython/sphinx-runpython/actions/workflows/tests.yml/badge.svg + :target: https://github.com/sdpython/sphinx-runpython/actions/workflows/tests.yml .. image:: https://badge.fury.io/py/sphinx-runpython.svg :target: http://badge.fury.io/py/sphinx-runpython diff --git a/_doc/conf.py b/_doc/conf.py index 22c4aec..bf4fd26 100644 --- a/_doc/conf.py +++ b/_doc/conf.py @@ -55,6 +55,8 @@ graphviz_output_format = "svg" graphviz_dot_args = ["-Gbgcolor=transparent"] +issues_github_path = "sdpython/sphinx-runpython" + html_theme = "furo" html_theme_path = ["_static"] html_theme_options = {} diff --git a/_doc/index.rst b/_doc/index.rst index d393840..e4e1781 100644 --- a/_doc/index.rst +++ b/_doc/index.rst @@ -2,8 +2,8 @@ sphinx-runpython: (Numpy) Array API for ONNX ============================================ -.. image:: https://dev.azure.com/xavierdupre3/sphinx-runpython/_apis/build/status/sdpython.sphinx-runpython - :target: https://dev.azure.com/xavierdupre3/sphinx-runpython/ +.. image:: https://github.com/sdpython/sphinx-runpython/actions/workflows/tests.yml/badge.svg + :target: https://github.com/sdpython/sphinx-runpython/actions/workflows/tests.yml .. image:: https://badge.fury.io/py/sphinx-runpython.svg :target: http://badge.fury.io/py/sphinx-runpython diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 4949857..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,169 +0,0 @@ -jobs: -- job: 'TestLinuxWheelPip313' - pool: - vmImage: 'ubuntu-latest' - strategy: - matrix: - Python312-Linux: - python.version: '3.13' - maxParallel: 3 - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - architecture: 'x64' - - script: sudo apt-get update - displayName: 'AptGet Update' - - script: sudo apt-get install -y pandoc - displayName: 'Install Pandoc' - - script: sudo apt-get install -y graphviz - displayName: 'Install Graphviz' - - script: python -m pip install --upgrade pip setuptools wheel - displayName: 'Install tools' - - script: pip install -r requirements.txt - displayName: 'Install Requirements' - - script: pip install -r requirements-dev.txt - displayName: 'Install Requirements dev' - - script: | - ruff check . - displayName: 'Ruff' - - script: | - black --diff . - displayName: 'Black' - - script: | - python -m pip wheel . --wheel-dir dist -v -v -v - displayName: 'build wheel' - - script: | - python -m pip install . -v -v -v - displayName: 'install wheel' - - script: | - python -m pytest --durations=10 --ignore-glob=**LONG*.py --ignore-glob=**notebook*.py - displayName: 'Runs Unit Tests' - - task: PublishPipelineArtifact@0 - inputs: - artifactName: 'wheel-linux-wheel-$(python.version)' - targetPath: 'dist' - -- job: 'TestLinux312' - pool: - vmImage: 'ubuntu-latest' - strategy: - matrix: - Python312-Linux: - python.version: '3.12' - maxParallel: 3 - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - architecture: 'x64' - - script: sudo apt-get update - displayName: 'AptGet Update' - - script: sudo apt-get install -y pandoc - displayName: 'Install Pandoc' - - script: sudo apt-get install -y inkscape - displayName: 'Install Inkscape' - - script: sudo apt-get install -y graphviz - displayName: 'Install Graphviz' - - script: python -m pip install --upgrade pip setuptools wheel - displayName: 'Install tools' - - script: pip install -r requirements.txt - displayName: 'Install Requirements' - - script: pip install -r requirements-dev.txt - displayName: 'Install Requirements dev' - - script: | - ruff check . - displayName: 'Ruff' - - script: | - black --diff . - displayName: 'Black' - - script: | - python -m pytest --durations=10 --ignore-glob=**LONG*.py --ignore-glob=**notebook*.py - displayName: 'Runs Unit Tests' - - script: | - python -u setup.py bdist_wheel - displayName: 'Build Package' - #- script: | - # python -m sphinx _doc dist/html - # displayName: 'Builds Documentation' - - task: PublishPipelineArtifact@0 - inputs: - artifactName: 'wheel-linux-$(python.version)' - targetPath: 'dist' - -- job: 'TestWindows312' - pool: - vmImage: 'windows-latest' - strategy: - matrix: - Python312-Windows: - python.version: '3.12' - maxParallel: 3 - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - architecture: 'x64' - - script: python -m pip install --upgrade pip setuptools wheel - displayName: 'Install tools' - - script: pip install -r requirements.txt - displayName: 'Install Requirements' - - script: pip install -r requirements-dev.txt - displayName: 'Install Requirements dev' - - script: | - python -m pytest --durations=10 --ignore-glob=**LONG*.py --ignore-glob=**notebook*.py - displayName: 'Runs Unit Tests' - - script: | - python -u setup.py bdist_wheel - displayName: 'Build Package' - - task: PublishPipelineArtifact@0 - inputs: - artifactName: 'wheel-windows-$(python.version)' - targetPath: 'dist' - -- job: 'TestMac312' - pool: - vmImage: 'macOS-latest' - strategy: - matrix: - Python312-Mac: - python.version: '3.12' - maxParallel: 3 - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - architecture: 'x64' - - script: gcc --version - displayName: 'gcc version' - - script: | - brew update - displayName: 'brew update' - - script: export - displayName: 'export' - - script: gcc --version - displayName: 'gcc version' - - script: brew install p7zip - displayName: 'Install p7zip' - - script: python -m pip install --upgrade pip setuptools wheel - displayName: 'Install tools' - - script: brew install pybind11 - displayName: 'Install pybind11' - - script: pip install -r requirements.txt - displayName: 'Install Requirements' - - script: pip install -r requirements-dev.txt - displayName: 'Install Requirements dev' - - script: | - python -m pytest --durations=10 --ignore-glob=**LONG*.py --ignore-glob=**notebook*.py - displayName: 'Runs Unit Tests' - - script: | - python -u setup.py bdist_wheel - displayName: 'Build Package' - - task: PublishPipelineArtifact@0 - inputs: - artifactName: 'wheel-mac-$(python.version)' - targetPath: 'dist' diff --git a/sphinx_runpython/ext_test_case.py b/sphinx_runpython/ext_test_case.py index 3ad3bd3..53d345b 100644 --- a/sphinx_runpython/ext_test_case.py +++ b/sphinx_runpython/ext_test_case.py @@ -121,15 +121,15 @@ def is_linux() -> bool: def skipif_ci_windows(msg) -> Callable: - """Skips a unit test if it runs on :epkg:`azure pipeline` on :epkg:`Windows`.""" + """Skips a unit test if it runs on :epkg:`GitHub Actions` on :epkg:`Windows`.""" if is_windows(): - msg = f"Test does not work on azure pipeline (Windows). {msg}" + msg = f"Test does not work on GitHub Actions (Windows). {msg}" return unittest.skip(msg) return lambda x: x def skipif_ci_linux(msg) -> Callable: - """Skips a unit test if it runs on :epkg:`azure pipeline` on :epkg:`Linux`.""" + """Skips a unit test if it runs on :epkg:`GitHub Actions` on :epkg:`Linux`.""" if is_linux(): msg = f"Takes too long (Linux). {msg}" return unittest.skip(msg) @@ -137,9 +137,9 @@ def skipif_ci_linux(msg) -> Callable: def skipif_ci_apple(msg) -> Callable: - """Skips a unit test if it runs on :epkg:`azure pipeline` on :epkg:`Windows`.""" + """Skips a unit test if it runs on :epkg:`GitHub Actions` on :epkg:`macOS`.""" if is_apple(): - msg = f"Test does not work on azure pipeline (Apple). {msg}" + msg = f"Test does not work on GitHub Actions (Apple). {msg}" return unittest.skip(msg) return lambda x: x