Skip to content

Commit

Permalink
Update manual.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ramesh-maddegoda authored Jan 18, 2024
1 parent 8eda8bb commit e8dbc7a
Showing 1 changed file with 41 additions and 27 deletions.
68 changes: 41 additions & 27 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e8dbc7a

Please sign in to comment.