Skip to content

Commit

Permalink
Adds action for the documentation (#18)
Browse files Browse the repository at this point in the history
* Adds action for the documentation

* update

* doc

* rename

* index

* remove one line

* Update requirements-dev.txt

* Update requirements-dev.txt

* Update requirements-dev.txt

---------

Co-authored-by: xavier dupré <xavier.dupre@gmail.com>
  • Loading branch information
xadupre and sdpython authored Apr 23, 2023
1 parent 33f366e commit 237ba77
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmakelint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run cmake-format linter
name: Cmake Format Checker

on: [push]

Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Documentation

on: [push, pull_request]

jobs:
build_wheels:
name: Build documentation on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v3

# Used to host cibuildwheel
- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install requirements
run: python -m pip install -r requirements.txt

- name: Install requirements-dev.txt
run: python -m pip install -r requirements-dev.txt

- name: Install
run: python -m pip install -e .

- name: Documentation
run: python -m sphinx ./_doc ./dist/html

- uses: actions/upload-artifact@v3
with:
path: ./dist/html/**
31 changes: 0 additions & 31 deletions .github/workflows/wheels.yml

This file was deleted.

2 changes: 1 addition & 1 deletion _doc/examples/plot_bench_cpu_vector_sum_parallel.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
.. _l-example-bench-cpu-vector-sum:
.. _l-example-bench-cpu-vector-sum-parallel:
Measuring CPU performance with a parallelized vector sum
========================================================
Expand Down
1 change: 0 additions & 1 deletion _doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ see also `code coverage <cov/index.html>`_.
from onnx_extended.ext_test_case import measure_time
from onnx_extended.reference import CReferenceEvaluator


X = make_tensor_value_info("X", TensorProto.FLOAT, [None, None, None, None])
Y = make_tensor_value_info("Y", TensorProto.FLOAT, [None, None, None, None])
B = make_tensor_value_info("B", TensorProto.FLOAT, [None, None, None, None])
Expand Down
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
autopep8
black
clang-format
cmakelang
Expand All @@ -14,7 +15,7 @@ onnxmltools
onnxruntime; python_version < '3.11'
pandas
psutil
pyquickhelper
pyquickhelper>=1.12.3821
pytest
pytest-cov
ruff
Expand Down

0 comments on commit 237ba77

Please sign in to comment.