Skip to content

Commit 7421b78

Browse files
CopilotMMathisLab
andcommitted
Fix checkout order and use setup-python built-in pip cache
Co-authored-by: MMathisLab <28102185+MMathisLab@users.noreply.github.com> Agent-Logs-Url: https://github.com/DeepLabCut/DeepLabCut-live-GUI/sessions/21ab9ebe-25bd-4963-b3c9-01ecbf60de45
1 parent c414ced commit 7421b78

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,20 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
2326
- name: Setup Python
2427
id: setup-python
2528
uses: actions/setup-python@v5
2629
with:
2730
python-version: '3.x'
28-
29-
- name: Cache dependencies
30-
id: pip-cache
31-
uses: actions/cache@v4
32-
with:
33-
path: ~/.cache/pip
34-
key: ${{ runner.os }}-pip-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('pyproject.toml', 'requirements.txt', 'setup.cfg', 'setup.py') }}
35-
restore-keys: |
36-
${{ runner.os }}-pip-${{ steps.setup-python.outputs.python-version }}-
37-
${{ runner.os }}-pip-
31+
cache: 'pip'
32+
cache-dependency-path: |
33+
pyproject.toml
34+
requirements.txt
35+
setup.cfg
36+
setup.py
3837
3938
- name: Install Qt/OpenGL runtime deps (Ubuntu)
4039
run: |
@@ -54,9 +53,6 @@ jobs:
5453
pip install build
5554
pip install twine
5655
57-
- name: Checkout code
58-
uses: actions/checkout@v4
59-
6056
- name: Build and publish to PyPI
6157
if: ${{ github.event_name == 'push' }}
6258
env:

0 commit comments

Comments
 (0)