Skip to content

Commit

Permalink
Use full python version to avoid bad interpreter errors.
Browse files Browse the repository at this point in the history
actions/setup-python#182

PiperOrigin-RevId: 589141271
Change-Id: I5de9b0d311dab86671036b6e9dfd88b0c94bd73b
  • Loading branch information
jagapiou authored and copybara-github committed Dec 8, 2023
1 parent 037663b commit b88209c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/actions/install-concordia/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ runs:
fi
- name: Set up Python ${{ inputs.python-version }}
id: setup-python
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
with:
python-version: ${{ inputs.python-version }}
Expand All @@ -36,16 +37,16 @@ runs:
uses: actions/cache/restore@v3
with:
path: venv
key: install-concordia-${{ steps.os-info.outputs.name }}-${{ steps.os-info.outputs.version }}-py${{ inputs.python-version}}-${{ hashFiles('setup.py') }}
key: install-concordia-${{ steps.os-info.outputs.name }}-${{ steps.os-info.outputs.version }}-py${{ steps.setup-python.outputs.version }}-${{ hashFiles('setup.py') }}
restore-keys: |
install-concordia-${{ steps.os-info.outputs.name }}-${{ steps.os-info.outputs.version }}-py${{ inputs.python-version }}-
install-concordia-${{ steps.os-info.outputs.name }}-${{ steps.os-info.outputs.version }}-py${{ steps.os-info.outputs.version }}-py${{ steps.setup-python.outputs.version }}-
- name: Install Concordia
if: steps.restore.outputs.cache-hit != 'true'
shell: bash
run: |
pip install --upgrade pip
pip install virtualenv
pip install --upgrade virtualenv
virtualenv venv
source venv/bin/activate
pip install --editable .[dev]
Expand All @@ -60,10 +61,6 @@ runs:
- name: Activate virtual environment
shell: bash
run: |
pwd
ls
ls venv
ls venv/bin
source venv/bin/activate
pip list
echo "PATH=${PATH}" >> $GITHUB_ENV

0 comments on commit b88209c

Please sign in to comment.