From e46848a5d095858b27554e806c36d5c73e415935 Mon Sep 17 00:00:00 2001 From: Brian Doolittle Date: Thu, 25 Jul 2024 10:44:16 -0400 Subject: [PATCH] deprecating sphinx build github action --- .github/workflows/build_documentation.yml | 17 ++++++++++++--- .github/workflows/check_documentation.yml | 19 +++++++++++++---- .github/workflows/check_documentation2.yml | 24 ---------------------- .github/workflows/formatting_check.yml | 2 +- setup.cfg | 2 +- 5 files changed, 31 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/check_documentation2.yml diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 28bda97..3adb76b 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -7,10 +7,21 @@ jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: ammaraskar/sphinx-action@master + - uses: actions/checkout@v2 + - name: Set up Python 3.11 + uses: actions/setup-python@v2 with: - docs-folder: "docs/" + python-version: 3.11 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + pip install -r requirements.txt + pip install -r docs/requirements.txt + pip install sphinx + - name: Build Documentation + run: | + sphinx-build -b html docs/source/ docs/build/html - name: Commit documentation changes run: | git clone https://github.com/ChitambarLab/qNetVO.git --branch gh-pages --single-branch gh-pages diff --git a/.github/workflows/check_documentation.yml b/.github/workflows/check_documentation.yml index 5c0afce..1b29c45 100644 --- a/.github/workflows/check_documentation.yml +++ b/.github/workflows/check_documentation.yml @@ -7,7 +7,18 @@ jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: ammaraskar/sphinx-action@master - with: - docs-folder: "docs/" + - uses: actions/checkout@v2 + - name: Set up Python 3.11 + uses: actions/setup-python@v2 + with: + python-version: 3.11 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + pip install -r requirements.txt + pip install -r docs/requirements.txt + pip install sphinx + - name: Build Documentation + run: | + sphinx-build -b html docs/source/ docs/build/html diff --git a/.github/workflows/check_documentation2.yml b/.github/workflows/check_documentation2.yml deleted file mode 100644 index 5275bc5..0000000 --- a/.github/workflows/check_documentation2.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Check Documentation two -on: - pull_request: - branches: [ main ] - -jobs: - docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.11 - uses: actions/setup-python@v2 - with: - python-version: 3.11 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install . - pip install -r requirements.txt - pip install -r docs/requirements.txt - pip install sphinx - - name: Build Documentation - run: | - sphinx-build -b html docs/source/ docs/build/html diff --git a/.github/workflows/formatting_check.yml b/.github/workflows/formatting_check.yml index 23869f5..71fbb23 100644 --- a/.github/workflows/formatting_check.yml +++ b/.github/workflows/formatting_check.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.11 - name: Install dependencies run: pip install black diff --git a/setup.cfg b/setup.cfg index 8578941..8357710 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,7 +18,7 @@ classifiers = package_dir = = src packages = find: -python_requires = >=3.8 +python_requires = >=3.9 install_requires = pennylane==0.37