Skip to content

Commit

Permalink
Speed-up test workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Nov 6, 2023
1 parent f691686 commit 234c0cd
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,20 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
# 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 234c0cd

Please sign in to comment.