Skip to content

Commit

Permalink
add pip caching to functional testing
Browse files Browse the repository at this point in the history
  • Loading branch information
shadycuz committed Jun 2, 2021
1 parent 0513910 commit 5d85ae1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2.2.2

- name: Python Cache
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('tests/requirements.txt') }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
pip install --upgrade --upgrade-strategy eager -r tests/requirements.txt
- name: Test with pytest
run: pytest

0 comments on commit 5d85ae1

Please sign in to comment.