Skip to content

Commit

Permalink
Try caching pip packages
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippThoelke committed Oct 8, 2024
1 parent 40a0411 commit af646c5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,24 @@ jobs:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Cache pip packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install wheel setuptools pip --upgrade
pip install flake8 pytest pytest-xdist-forked
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install .
- name: Lint with flake8
Expand Down

0 comments on commit af646c5

Please sign in to comment.