diff --git a/.github/workflows/check_urls.yml b/.github/workflows/check-urls.yml similarity index 100% rename from .github/workflows/check_urls.yml rename to .github/workflows/check-urls.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 119b76c..9591ab9 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,6 +1,12 @@ name: Documentation and Code Coverage -on: [push] +on: + push: + pull_request: + types: + - closed + branches: + - main jobs: build_wheels: @@ -15,7 +21,6 @@ jobs: - uses: tlylt/install-graphviz@v1 - # Used to host cibuildwheel - uses: actions/setup-python@v4 with: python-version: '3.11' diff --git a/.github/workflows/wheels-any.yml b/.github/workflows/wheels-any.yml new file mode 100644 index 0000000..0e72470 --- /dev/null +++ b/.github/workflows/wheels-any.yml @@ -0,0 +1,29 @@ +name: Build Any Wheel + +on: + push: + branches: + - main + - 'releases/**' + +jobs: + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: build wheel + run: python -m pip wheel . + + - uses: actions/upload-artifact@v3 + with: + path: ./sphinx_runpython*.whl diff --git a/README.rst b/README.rst index 36204d0..3c28016 100644 --- a/README.rst +++ b/README.rst @@ -26,8 +26,8 @@ sphinx-runpython: run python code in sphinx .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black -.. image:: https://codecov.io/gh/sdpython/sphinx-runpython/branch/main/graph/badge.svg?token=CTUV6EDBB6 - :target: https://codecov.io/gh/sdpython/sphinx-runpython +.. image:: https://codecov.io/github/sdpython/sphinx-runpython/branch/main/graph/badge.svg?token=CTUV6EDBB6 + :target: https://codecov.io/github/sdpython/sphinx-runpython **sphinx-runpython** implements sphinx extensions including one to execute code and add the output to the documentation. diff --git a/_doc/index.rst b/_doc/index.rst index b89773d..1c2fac9 100644 --- a/_doc/index.rst +++ b/_doc/index.rst @@ -23,8 +23,8 @@ sphinx-runpython: (Numpy) Array API for ONNX .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black -.. image:: https://codecov.io/gh/sdpython/sphinx-runpython/branch/main/graph/badge.svg?token=CTUV6EDBB6 - :target: https://codecov.io/gh/sdpython/sphinx-runpython +.. image:: https://codecov.io/github/sdpython/sphinx-runpython/branch/main/graph/badge.svg?token=CTUV6EDBB6 + :target: https://codecov.io/github/sdpython/sphinx-runpython **sphinx-runpython** an extension to execute python code in documentation