Skip to content

Commit d6671b7

Browse files
committed
fix: optimize pip installation commands to use no-cache-dir for improved performance
1 parent 8375a7c commit d6671b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/python_package.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
uses: actions/setup-python@v3
3232
with:
3333
python-version: ${{ matrix.python-version }}
34-
- name: Upgrade pip and install dependencies
34+
- name: Upgrade pip and install dependencies
3535
run: |
36-
python -m pip install --upgrade pip
37-
python -m pip install flake8 pytest pytest-asyncio setuptools wheel
36+
python -m pip install --no-cache-dir --upgrade pip
37+
python -m pip install --no-cache-dir flake8 pytest pytest-asyncio setuptools wheel
3838
- name: Build package
3939
run: |
4040
python setup.py bdist_wheel sdist
41-
python -m pip install -e .
41+
python -m pip install --no-cache-dir -e .
4242
- name: Lint with flake8
4343
run: |
4444
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
@@ -47,7 +47,7 @@ jobs:
4747
run: pytest tests --ignore=tests/agents
4848
- name: Install package with agents requirements
4949
run: |
50-
python -m pip install .[agents]
50+
python -m pip install --no-cache-dir .[agents]
5151
- name: Test agents with pytest
5252
run: pytest tests/agents
5353
security:

0 commit comments

Comments
 (0)