Skip to content

Commit b630ca2

Browse files
Copilotxadupre
andauthored
Switch from Azure Pipelines to GitHub Actions (#62)
* Initial plan * Switch from Azure Pipelines to GitHub Actions Agent-Logs-Url: https://github.com/sdpython/sphinx-runpython/sessions/eaf8a233-884a-4e06-8add-2956315a7d82 Co-authored-by: xadupre <22452781+xadupre@users.noreply.github.com> * Fix sphinx_issues missing issues_github_path in conf.py Agent-Logs-Url: https://github.com/sdpython/sphinx-runpython/sessions/785e87ae-9f95-42cb-a3d1-47bfd405c950 Co-authored-by: xadupre <22452781+xadupre@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: xadupre <22452781+xadupre@users.noreply.github.com>
1 parent 45e0ff9 commit b630ca2

5 files changed

Lines changed: 11 additions & 178 deletions

File tree

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
sphinx-runpython: run python code in sphinx
66
===========================================
77

8-
.. image:: https://dev.azure.com/xavierdupre3/sphinx-runpython/_apis/build/status/sdpython.sphinx-runpython
9-
:target: https://dev.azure.com/xavierdupre3/sphinx-runpython/
8+
.. image:: https://github.com/sdpython/sphinx-runpython/actions/workflows/tests.yml/badge.svg
9+
:target: https://github.com/sdpython/sphinx-runpython/actions/workflows/tests.yml
1010

1111
.. image:: https://badge.fury.io/py/sphinx-runpython.svg
1212
:target: http://badge.fury.io/py/sphinx-runpython

_doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
graphviz_output_format = "svg"
5656
graphviz_dot_args = ["-Gbgcolor=transparent"]
5757

58+
issues_github_path = "sdpython/sphinx-runpython"
59+
5860
html_theme = "furo"
5961
html_theme_path = ["_static"]
6062
html_theme_options = {}

_doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
sphinx-runpython: (Numpy) Array API for ONNX
33
============================================
44

5-
.. image:: https://dev.azure.com/xavierdupre3/sphinx-runpython/_apis/build/status/sdpython.sphinx-runpython
6-
:target: https://dev.azure.com/xavierdupre3/sphinx-runpython/
5+
.. image:: https://github.com/sdpython/sphinx-runpython/actions/workflows/tests.yml/badge.svg
6+
:target: https://github.com/sdpython/sphinx-runpython/actions/workflows/tests.yml
77

88
.. image:: https://badge.fury.io/py/sphinx-runpython.svg
99
:target: http://badge.fury.io/py/sphinx-runpython

azure-pipelines.yml

Lines changed: 0 additions & 169 deletions
This file was deleted.

sphinx_runpython/ext_test_case.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,25 +121,25 @@ def is_linux() -> bool:
121121

122122

123123
def skipif_ci_windows(msg) -> Callable:
124-
"""Skips a unit test if it runs on :epkg:`azure pipeline` on :epkg:`Windows`."""
124+
"""Skips a unit test if it runs on :epkg:`GitHub Actions` on :epkg:`Windows`."""
125125
if is_windows():
126-
msg = f"Test does not work on azure pipeline (Windows). {msg}"
126+
msg = f"Test does not work on GitHub Actions (Windows). {msg}"
127127
return unittest.skip(msg)
128128
return lambda x: x
129129

130130

131131
def skipif_ci_linux(msg) -> Callable:
132-
"""Skips a unit test if it runs on :epkg:`azure pipeline` on :epkg:`Linux`."""
132+
"""Skips a unit test if it runs on :epkg:`GitHub Actions` on :epkg:`Linux`."""
133133
if is_linux():
134134
msg = f"Takes too long (Linux). {msg}"
135135
return unittest.skip(msg)
136136
return lambda x: x
137137

138138

139139
def skipif_ci_apple(msg) -> Callable:
140-
"""Skips a unit test if it runs on :epkg:`azure pipeline` on :epkg:`Windows`."""
140+
"""Skips a unit test if it runs on :epkg:`GitHub Actions` on :epkg:`macOS`."""
141141
if is_apple():
142-
msg = f"Test does not work on azure pipeline (Apple). {msg}"
142+
msg = f"Test does not work on GitHub Actions (Apple). {msg}"
143143
return unittest.skip(msg)
144144
return lambda x: x
145145

0 commit comments

Comments
 (0)