Skip to content

Commit

Permalink
ci: update cache setting
Browse files Browse the repository at this point in the history
  • Loading branch information
waketzheng committed Jan 23, 2025
1 parent 4e05120 commit e339cbf
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,18 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v4
id: cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install and configure Poetry
run: |
pip install -U pip poetry
poetry config virtualenvs.create false
- uses: actions/cache@v4
id: cache
with:
path: ~/.cache/pip
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install ODBC driver
run: |
sudo curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
Expand Down

0 comments on commit e339cbf

Please sign in to comment.