Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jagapiou authored Dec 8, 2023
1 parent cfac011 commit 355d190
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/actions/install-concordia/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,35 @@ concurrency:
runs:
using: composite
steps:
# - name: Get current runner
# id: os-info
# shell: bash
# run: |
# if [ "${RUNNER_OS}" = 'macOS' ]; then
# echo "name=$(sw_vers -productName)" >> $GITHUB_OUTPUT
# echo "version=$(sw_vers -productVersion)" >> $GITHUB_OUTPUT
# elif [ "${RUNNER_OS}" = 'Linux' ]; then
# echo "name=$(lsb_release -i -s)" >> $GITHUB_OUTPUT
# echo "version=$(lsb_release -r -s)" >> $GITHUB_OUTPUT
# else
# exit 1
# fi
- name: Get current runner
id: os-info
shell: bash
run: |
if [ "${RUNNER_OS}" = 'macOS' ]; then
echo "name=$(sw_vers -productName)" >> $GITHUB_OUTPUT
echo "version=$(sw_vers -productVersion)" >> $GITHUB_OUTPUT
elif [ "${RUNNER_OS}" = 'Linux' ]; then
echo "name=$(lsb_release -i -s)" >> $GITHUB_OUTPUT
echo "version=$(lsb_release -r -s)" >> $GITHUB_OUTPUT
else
exit 1
fi
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
with:
python-version: ${{ inputs.python-version }}
cache: 'pip'
cache-dependency-path: setup.py
# cache: 'pip'
# cache-dependency-path: setup.py

# - name: Restore Concordia installation
# id: restore
# 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') }}
# restore-keys: |
# install-concordia-${{ steps.os-info.outputs.name }}-${{ steps.os-info.outputs.version }}-py${{ inputs.python-version }}-
- name: Restore Concordia installation
id: restore
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') }}
restore-keys: |
install-concordia-${{ steps.os-info.outputs.name }}-${{ steps.os-info.outputs.version }}-py${{ inputs.python-version }}-
- name: Install Concordia
# if: steps.restore.outputs.cache-hit != 'true'
Expand All @@ -54,16 +54,16 @@ runs:
# source venv/bin/activate
pip install --editable .[dev]
# - name: Save Concordia installation
# if: steps.restore.outputs.cache-hit != 'true'
# uses: actions/cache/save@v3
# with:
# path: venv
# key: ${{ steps.restore.outputs.cache-primary-key }}
- name: Save Concordia installation
if: steps.restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: venv
key: ${{ steps.restore.outputs.cache-primary-key }}

# - name: Activate virtual environment
# shell: bash
# run: |
# source venv/bin/activate
# pip list
# echo "PATH=${PATH}" >> $GITHUB_ENV
- name: Activate virtual environment
shell: bash
run: |
source venv/bin/activate
pip list
echo "PATH=${PATH}" >> $GITHUB_ENV

0 comments on commit 355d190

Please sign in to comment.