Open havok2063 opened 3 years ago
I have a similar question. I would like to run with the Python from my conda environment. This is unsuccessful for the same reason. Ref: https://github.com/tdegeus/prrng/pull/31
I don't think there is a way to set the Python version with this action. Usually you could do something in the "with" options, but this action doesn't have a python-version option. I have replaced the action to get the Python version I need with:
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Upgrade pip, install package, install requirements, build docs
run: |
pip install --upgrade pip
pip install .
pip install -r ./docs/requirements.txt
pip install sphinx
sphinx-build docs ./docs/_build/html/
+1 for being able specify specific python version. It was using python 3.8 for me and I need at least python 3.10 for my documentation build.
I've been using your action for a while now with no problems but I'm now getting build errors consistently. The action seems to run the Sphinx build with Python 3.10 and fails with the traceback below.
I've set up a build matrix to run specific Python versions, with 3.10 an allowed failure, but it continues to use Python 3.10 in each environment. What's the recommended way to tell the action to use a specific version of Python?