|
9 | 9 | vmImage: ${{ parameters.vmImage }}
|
10 | 10 | strategy:
|
11 | 11 | matrix:
|
12 |
| - py38: |
13 |
| - ENV_FILE: ci/deps/actions-38.yaml |
14 |
| - CONDA_PY: "38" |
| 12 | + # py38: |
| 13 | + # ENV_FILE: ci/deps/actions-38.yaml |
| 14 | + # CONDA_PY: "38" |
15 | 15 |
|
16 |
| - py39: |
17 |
| - ENV_FILE: ci/deps/actions-39.yaml |
18 |
| - CONDA_PY: "39" |
| 16 | + # py39: |
| 17 | + # ENV_FILE: ci/deps/actions-39.yaml |
| 18 | + # CONDA_PY: "39" |
19 | 19 |
|
20 | 20 | py310:
|
21 | 21 | ENV_FILE: ci/deps/actions-310.yaml
|
22 | 22 | CONDA_PY: "310"
|
23 | 23 |
|
24 | 24 | steps:
|
25 |
| - - script: echo '##vso[task.prependpath]$(HOME)/miniconda3/bin' |
26 |
| - displayName: 'Set conda path' |
| 25 | + - task: Cache@2 |
| 26 | + inputs: |
| 27 | + key: sccache-0 |
| 28 | + restoreKeys: | |
| 29 | + sccache-restore-0 |
| 30 | + path: $(HOME)/.sccache |
| 31 | + displayName: Restore Sccache cache |
| 32 | + |
| 33 | + - script: | |
| 34 | + set -eux |
| 35 | + sccache_version=v0.2.15 |
| 36 | + sccache_archive_name=sccache-$sccache_version-x86_64-apple-darwin |
| 37 | + curl -L https://github.com/mozilla/sccache/releases/download/$sccache_version/$sccache_archive_name.tar.gz \ |
| 38 | + | tar xzf - -O $sccache_archive_name/sccache > /usr/local/bin/sccache |
| 39 | + chmod +x /usr/local/bin/sccache |
| 40 | + SCCACHE_IDLE_TIMEOUT=999999 SCCACHE_DIR=$(HOME)/.sccache sccache --start-server |
| 41 | + sccache -s |
| 42 | + sccache -z |
| 43 | + displayName: Setup Sccache |
| 44 | +
|
| 45 | + - task: Cache@2 |
| 46 | + inputs: |
| 47 | + key: conda-0 |
| 48 | + restoreKeys: | |
| 49 | + conda-restore-0 |
| 50 | + pattern: /usr/local/miniconda/pkgs/*.tar.bz2 |
| 51 | + displayName: Restore Conda package cache |
| 52 | + |
| 53 | + - script: echo '##vso[task.prependpath]/usr/local/miniconda/condabin' |
| 54 | + displayName: 'Set conda path asdf' |
27 | 55 |
|
28 | 56 | - script: rm /usr/local/miniconda/pkgs/cache/*.json
|
29 | 57 | displayName: 'Workaround for mamba-org/mamba#488'
|
30 | 58 |
|
31 |
| - - script: ci/setup_env.sh |
| 59 | + - script: | |
| 60 | + set -eux |
| 61 | + conda install -y -c conda-forge -n base 'mamba>=0.22' pip |
| 62 | + env | grep pkg |
| 63 | + # See https://github.com/mamba-org/mamba/issues/633 |
| 64 | + mamba create -q -n pandas-dev |
| 65 | + # TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941 |
| 66 | + echo ' - setuptools <60' >> ${ENV_FILE} |
| 67 | + if [ "$(uname)" == Darwin ]; then |
| 68 | + # From pyarrow on MacOS |
| 69 | + # ImportError: 2): Library not loaded: @rpath/libssl.1.1.dylib |
| 70 | + # Referenced from: /Users/runner/miniconda3/envs/pandas-dev/lib/libthrift.0.13.0.dylib |
| 71 | + # Reason: image not found |
| 72 | + sed -i'' -e 's/^ - pyarrow$/ - pyarrow=6/' ${ENV_FILE} |
| 73 | + fi |
| 74 | + time mamba env update -n pandas-dev --file="${ENV_FILE}" |
| 75 | + set +e |
| 76 | + echo Have qt? |
| 77 | + mamba list -n pandas-dev -f qt --json |
| 78 | + echo Have pandas? |
| 79 | + mamba run --no-capture-output -n pandas-dev pip list | grep pandas |
| 80 | + set -e |
| 81 | + time DISTUTILS_C_COMPILER_LAUNCHER=sccache mamba run --no-capture-output -n pandas-dev python setup.py build_ext -q -j3 |
| 82 | + time mamba run --no-capture-output -n pandas-dev python -m pip install --no-build-isolation -e . |
| 83 | + sccache -s |
32 | 84 | displayName: 'Setup environment and build pandas'
|
33 | 85 |
|
34 | 86 | - script: |
|
35 |
| - conda run -n pandas-dev --no-capture-output ci/run_tests.sh |
| 87 | + mamba run --no-capture-output -n pandas-dev ci/run_tests.sh |
36 | 88 | displayName: 'Test'
|
37 | 89 |
|
38 | 90 | - script: |
|
39 | 91 | pushd /tmp
|
40 |
| - conda run -n pandas-dev python -c "import pandas; pandas.show_versions()" |
| 92 | + mamba run --no-capture-output -n pandas-dev python -c "import pandas; pandas.show_versions()" |
41 | 93 | popd
|
42 | 94 | displayName: 'Build versions'
|
43 | 95 |
|
|
0 commit comments