From e8dbc7a38ca492e2d8cae71d44b67fde9165dd64 Mon Sep 17 00:00:00 2001 From: Ramesh Maddegoda <94033485+ramesh-maddegoda@users.noreply.github.com> Date: Thu, 18 Jan 2024 11:17:43 -0800 Subject: [PATCH] Update manual.yml --- .github/workflows/manual.yml | 68 ++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 27 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 5efc0fd..2c2204d 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -10,36 +10,50 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: ammaraskar/sphinx-action@master with: - python-version: '3.x' - - uses: jannekem/run-python-script-action@v1 - with: - script: | - import os - import logging, shutil - from .util import invoke, invokeGIT, TAG_RE, commit, delete_tags, git_config, add_version_label_to_open_bugs - from lasso.releasers._python_version import TextFileDetective - import logging, os, re, shutil + docs-folder: "docs/" + build-command: "sphinx-build" + + + + + + + + + + + + + + + # with: + # script: | + # import os + # import logging, shutil + # from .util import invoke, invokeGIT, TAG_RE, commit, delete_tags, git_config, add_version_label_to_open_bugs + # from lasso.releasers._python_version import TextFileDetective + # import logging, os, re, shutil - # This should match what's in github-actions-base - SPHINX_VERSION = '3.2.1' + # # This should match what's in github-actions-base + # SPHINX_VERSION = '3.2.1' - _logger.debug('Python preparation step') - git_config() - shutil.rmtree('venv', ignore_errors=True) - # We add access to system site packages so that projects can save time if they need numpy, pandas, etc. - invoke(['python', '-m', 'venv', '--system-site-packages', 'venv']) - # Do the pseudo-equivalent of ``activate``: - venvBin = os.path.abspath(os.path.join(self.assembly.context.cwd, 'venv', 'bin')) - os.environ['PATH'] = f'{venvBin}:{os.environ["PATH"]}' - # Make sure we have the latest of pip+setuptools+wheel - invoke(['pip', 'install', '--quiet', '--upgrade', 'pip', 'setuptools', 'wheel']) - # #79: ensure that the venv has its own ``sphinx-build`` - invoke(['pip', 'install', '--quiet', '--ignore-installed', f'sphinx=={SPHINX_VERSION}']) - # Now install the package being rounded up - invoke(['pip', 'install', '--editable', '.[dev]']) - # ☑️ TODO: what other prep steps are there? What about VERSION.txt overwriting? + # _logger.debug('Python preparation step') + # git_config() + # shutil.rmtree('venv', ignore_errors=True) + # # We add access to system site packages so that projects can save time if they need numpy, pandas, etc. + # invoke(['python', '-m', 'venv', '--system-site-packages', 'venv']) + # # Do the pseudo-equivalent of ``activate``: + # venvBin = os.path.abspath(os.path.join(self.assembly.context.cwd, 'venv', 'bin')) + # os.environ['PATH'] = f'{venvBin}:{os.environ["PATH"]}' + # # Make sure we have the latest of pip+setuptools+wheel + # invoke(['pip', 'install', '--quiet', '--upgrade', 'pip', 'setuptools', 'wheel']) + # # #79: ensure that the venv has its own ``sphinx-build`` + # invoke(['pip', 'install', '--quiet', '--ignore-installed', f'sphinx=={SPHINX_VERSION}']) + # # Now install the package being rounded up + # invoke(['pip', 'install', '--editable', '.[dev]']) + # # ☑️ TODO: what other prep steps are there? What about VERSION.txt overwriting? # # Controls when the action will run. Workflow runs when manually triggered using the UI # # or API.