-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH/CI: Add Cache for Azure pipelines - posix #44029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
39fa0b0
BLD: Add conda cache to azure ci
trallard 2198ca8
BLD: Add conda cache to Windows azure CI
trallard bba2735
BLD: Trivial change to test cache
trallard 7dc9abe
ENH: Add conda cache - windows and posix
trallard 9de1b58
ENH: Should be a path not a string
trallard 8950f42
ENH: Move pandas build - should be its own task
trallard 7371150
ENH: Ensure the cache path exists - Windows
trallard 8d93bc8
ENH: cache miniconda too
trallard 58e8df5
ENH: Ensure cache dir exists - Windows
trallard 027684a
ENH: Force make cache dir
trallard 834f824
ENH: Revert to original setup_env.sh
trallard df307fa
ENH: use bash for conda update
trallard 76ba935
ENH: Use Miniconda dir in Windows
trallard f13efbe
Trivial change to trigger pipeline
trallard 77cd415
Revert to base CI
trallard 56dc350
ENH: Add cache again
trallard 2480556
:construction_worker: Add cache hit
trallard 9a9f1db
:bug: Fix Cache path
trallard 8325e03
Trivial change to trigger pipelines
trallard 464dddf
Print conda info
trallard 1277c6a
Add conda update to posix
trallard 578ec73
:bug: Fix imcomplte script
trallard 03692a2
Fix update command
trallard a26a896
Update ci/azure/posix.yml
trallard 4df7ede
Revert Windows ci
trallard f6dd43f
Merge remote-tracking branch 'upstream/master' into trallard/CI-cache
trallard ce89fde
Merge remote-tracking branch 'origin/main' into trallard/CI-cache
trallard dfcd0d9
Fix env update
trallard bff1bee
Remove illegal flag
trallard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,8 +43,33 @@ jobs: | |
- script: echo '##vso[task.prependpath]$(HOME)/miniconda3/bin' | ||
displayName: 'Set conda path' | ||
|
||
- task: Cache@2 | ||
displayName: Use cached Anaconda environment | ||
inputs: | ||
key: 'conda | "$(Agent.OS)" | $(ENV_FILE)' | ||
path: $(HOME)/miniconda3/ | ||
restoreKeys: | | ||
python | "$(Agent.OS)" | ||
python | ||
cacheHitVar: CONDA_CACHE_RESTORED | ||
|
||
- script: ci/setup_env.sh | ||
displayName: 'Setup environment and build pandas' | ||
displayName: 'Setup environment' | ||
condition: eq(variables.CONDA_CACHE_RESTORED, 'false') | ||
|
||
- script: | | ||
conda env update -q -n pandas-dev --file $ENV_FILE | ||
displayName: 'Update packages in pandas-dev' | ||
|
||
- script: | | ||
source activate pandas-dev | ||
conda list pandas | ||
python setup.py build_ext -q -j2 | ||
python -m pip install --no-deps -U pip wheel setuptools | ||
python -m pip install --no-build-isolation -e . | ||
echo "conda list" | ||
conda list | ||
displayName: 'Build extensions and install pandas' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason you are not using ci/setup_env.sh? Note that that script is also used by other builds on Github Actions, so if you are changing that file, you should gate your changes behind an env variable to avoid it affecting other builds. |
||
|
||
- script: | | ||
source activate pandas-dev | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think setuptools will need to be pinned to <60 to pass CI.