From 03f17ff9e5108aef0103dde2391730e20d3d24fb Mon Sep 17 00:00:00 2001 From: Alkid Date: Thu, 7 Dec 2023 14:38:10 +0100 Subject: [PATCH] testing GitHub workflow --- .github/workflows/docs.yml | 127 +++++++++++++++++++------------------ 1 file changed, 65 insertions(+), 62 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 65620187..bbb1b8b7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,62 +1,65 @@ -name: Build docs - -on: - push: - branches: [] - pull_request: - -jobs: - docs: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [ "3.9.18" ] - max-parallel: 5 - - steps: - - uses: actions/checkout@v3 - - name: Install tox - id: install-tox - run: | - pip install tox==3.24.3 - echo "tox_version=$(pip list | grep tox | tr -d ' ')" >> $GITHUB_OUTPUT - - name: prepare required software - run: | - # epstopdf & dot & noto-fonts - sudo apt update && sudo apt install texlive-font-utils graphviz fonts-noto - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - name: Set up Conda - uses: conda-incubator/setup-miniconda@v2 - with: - environment-file: environment.yml - - name: Install Sphinx 7.1.2 - run: pip install sphinx==7.1.2 - - name: Build docs with tox - run: | - tox -o -e docs - - name: Build latex docs with tox - run: | - tox -o -e docs -- latex - - name: Compile LaTeX document - uses: docker://texlive/texlive:latest - with: - args: make -C docs/_build/latex - - run: | - cp docs/_build/latex/ontolearn.pdf docs/_build/html/ - - name: Deploy to netlify - uses: nwtgck/actions-netlify@v1.2 - with: - publish-dir: 'docs/_build/html' - production-branch: develop - github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: "Deploy from GitHub Actions ${{ github.sha }}" - alias: ${{ github.head_ref }} - enable-pull-request-comment: false - enable-commit-comment: false - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - timeout-minutes: 5 +#name: Build docs +# +#on: +# push: +# branches: +# - master +# - develop +# - testing_purposes +# pull_request: +# +#jobs: +# docs: +# runs-on: ubuntu-latest +# strategy: +# matrix: +# python-version: [ "3.9.18" ] +# max-parallel: 5 +# +# steps: +# - uses: actions/checkout@v3 +# - name: Install tox +# id: install-tox +# run: | +# pip install tox==3.24.3 +# echo "tox_version=$(pip list | grep tox | tr -d ' ')" >> $GITHUB_OUTPUT +# - name: prepare required software +# run: | +# # epstopdf & dot & noto-fonts +# sudo apt update && sudo apt install texlive-font-utils graphviz fonts-noto +# sudo rm -rf /usr/share/dotnet +# sudo rm -rf /opt/ghc +# sudo rm -rf "/usr/local/share/boost" +# sudo rm -rf "$AGENT_TOOLSDIRECTORY" +# - name: Set up Conda +# uses: conda-incubator/setup-miniconda@v2 +# with: +# environment-file: environment.yml +# - name: Install Sphinx 7.1.2 +# run: pip install sphinx==7.1.2 +# - name: Build docs with tox +# run: | +# tox -o -e docs +# - name: Build latex docs with tox +# run: | +# tox -o -e docs -- latex +# - name: Compile LaTeX document +# uses: docker://texlive/texlive:latest +# with: +# args: make -C docs/_build/latex +# - run: | +# cp docs/_build/latex/ontolearn.pdf docs/_build/html/ +# - name: Deploy to netlify +# uses: nwtgck/actions-netlify@v1.2 +# with: +# publish-dir: 'docs/_build/html' +# production-branch: develop +# github-token: ${{ secrets.GITHUB_TOKEN }} +# deploy-message: "Deploy from GitHub Actions ${{ github.sha }}" +# alias: ${{ github.head_ref }} +# enable-pull-request-comment: false +# enable-commit-comment: false +# env: +# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} +# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} +# timeout-minutes: 5