Skip to content

Commit

Permalink
Updated versions of python modules
Browse files Browse the repository at this point in the history
  • Loading branch information
nawaz1991 committed Jul 9, 2024
1 parent 7f36298 commit 321434d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Deploy docs and code coverage

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
build-and-deploy-docs-and-codecov:
Expand All @@ -17,9 +18,9 @@ jobs:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.12'

- name: Set up latest Oracle JDK 21
uses: oracle-actions/setup-java@v1
Expand All @@ -34,11 +35,14 @@ jobs:
- name: Install python dependencies
run: |
pip3 install gcovr sphinx breathe exhale furo sphinx-plantuml
pip install -U pip
pip install -U sphinx==7.3.7
pip install gcovr breathe exhale sphinx-plantuml
pip install furo==2024.5.6
- uses: lukka/get-cmake@latest

- name: Configure code coverage code coverage and docs
- name: Configure code coverage and docs
uses: lukka/run-cmake@v10
with:
configurePreset: 'debug'
Expand All @@ -49,17 +53,22 @@ jobs:
configurePreset: 'release'
buildPreset: 'perftests-build'

- name: Run performance tests
run: build/release/test/perftest/oasvalidator-perftests --benchmark_format=json > build/debug/docs/benchmark.json
#- name: Run performance tests
# run: build/release/test/perftest/oasvalidator-perftests --benchmark_format=json > build/debug/docs/benchmark.json

- name: Convert benchmark.json to benchmark.rst
run: python .github/workflows/convert_json_to_rst.py build/debug/docs/benchmark.json build/debug/docs/benchmark.rst
#- name: Convert benchmark.json to benchmark.rst
# run: python .github/workflows/convert_json_to_rst.py build/debug/docs/benchmark.json build/debug/docs/benchmark.rst

- name: Build docs and code coverage
uses: lukka/run-cmake@v10
with:
workflowPreset: 'build-docs-and-codecov'

- name: Run Sphinx
run: |
cd docs
make html
- name: Copy code coverage to docs
run: cp -r build/debug/covhtml-oasvalidator build/debug/docs/html

Expand All @@ -79,4 +88,4 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1 change: 0 additions & 1 deletion docs/index.rst.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ cpp-oasvalidator
@EXHALE_REL_OUTPUT_DIR@/library_root
codecov
classdiagram
benchmark
genindex

0 comments on commit 321434d

Please sign in to comment.