Write an Azure CI yaml script that caches pip packages:
- User
Write an Azure CI yaml script that caches pip packages:
Assistant
Here is an Azure CI yaml script that caches pip packages:
yamlvariables: PIP_CACHE_DIR: $(Pipeline.Workspace)/.pip steps: - task: UsePythonVersion@0 inputs: versionSpec: '3.7' - script: | python -m pip install --upgrade pip pip install -r requirements.txt displayName: 'Install dependencies' - task: Cache@2 inputs: key: 'pip | "$(Agent.OS)" | requirements.txt' restoreKeys: | pip | "$(Agent.OS)" pip path: $(PIP_CACHE_DIR) displayName: 'Cache pip packages' - script: | pip install --cache-dir $(PIP_CACHE_DIR) -r requirements.txt displayName: 'Install dependencies from cache'
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.