Skip to content

Commit

Permalink
Cache Python dependencies in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
taleinat committed Jun 25, 2024
1 parent ab154cd commit 011812a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ jobs:
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.python_arch }}
cache: 'pip'
cache-dependency-path: .github/workflows/ci.yml
- name: Install tox dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -153,6 +155,11 @@ jobs:
pip --version
tox --version
pip list --format=freeze
- name: Cache tox env
uses: actions/cache@v4
with:
path: .tox/${{ matrix.tox_env }}
key: ${{ matrix.python }}-${{ matrix.python_arch }}-${{ hashFiles('setup.py', 'tox.ini') }}
- name: Test
env:
TOXPYTHON: '${{ matrix.toxpython }}'
Expand Down

0 comments on commit 011812a

Please sign in to comment.