Skip to content

Commit

Permalink
Update test-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Dec 9, 2023
1 parent 47b4200 commit 44c9742
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# cache: 'pip'

- name: Cache virtualenv
uses: actions/cache@v3
with:
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}
path: ./venv

- name: Create virtualenv
run: |
python -m venv ./venv
source ./venv/bin/activate
echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV
cache: 'pip'

# - name: Cache virtualenv
# uses: actions/cache@v3
# with:
# key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-test.txt') }}
# path: ./venv

# - name: Create virtualenv
# run: |
# python -m venv ./venv
# source ./venv/bin/activate
# echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
# echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV

- name: Install dependencies
run: |
Expand Down

0 comments on commit 44c9742

Please sign in to comment.