Skip to content

Commit e5049e5

Browse files
committed
Squash
1 parent 60c393a commit e5049e5

File tree

2 files changed

+46
-49
lines changed

2 files changed

+46
-49
lines changed

.circleci/config.yml

-21
This file was deleted.

ci/azure/posix.yml

+46-28
Original file line numberDiff line numberDiff line change
@@ -22,63 +22,81 @@ jobs:
2222
CONDA_PY: "310"
2323

2424
steps:
25-
- displayName: 'Set conda path'
26-
script: echo '##vso[task.prependpath]$(HOME)/miniconda3/bin'
27-
28-
- displayName: 'Workaround for mamba-org/mamba#488'
29-
script: rm /usr/local/miniconda/pkgs/cache/*.json
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
3032

31-
- displayName: 'Setup environment and build pandas'
32-
script: |
33-
echo $PATH
33+
- script: |
34+
set -eux
3435
sccache_version=v0.2.15
3536
sccache_archive_name=sccache-$sccache_version-x86_64-apple-darwin
3637
curl -L https://github.com/mozilla/sccache/releases/download/$sccache_version/$sccache_archive_name.tar.gz \
3738
| tar xzf - -O $sccache_archive_name/sccache > /usr/local/bin/sccache
3839
chmod +x /usr/local/bin/sccache
39-
SCCACHE_IDLE_TIMEOUT=999999 sccache --start-server
40+
SCCACHE_IDLE_TIMEOUT=999999 SCCACHE_DIR=$(HOME)/.sccache sccache --start-server
4041
sccache -s
4142
sccache -z
42-
# conda config --set ssl_verify false
43-
# conda config --set quiet true --set always_yes true --set changeps1 false
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'
55+
56+
- script: rm /usr/local/miniconda/pkgs/cache/*.json
57+
displayName: 'Workaround for mamba-org/mamba#488'
58+
59+
- script: |
60+
set -eux
4461
conda install -y -c conda-forge -n base 'mamba>=0.22' pip
45-
echo "mamba env update --file=${ENV_FILE}"
62+
env | grep pkg
4663
# See https://github.com/mamba-org/mamba/issues/633
4764
mamba create -q -n pandas-dev
4865
# TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941
4966
echo ' - setuptools <60' >> ${ENV_FILE}
50-
if [[ "$(uname)" == Darwin ]]; then
67+
if [ "$(uname)" == Darwin ]; then
5168
# From pyarrow on MacOS
5269
# ImportError: 2): Library not loaded: @rpath/libssl.1.1.dylib
5370
# Referenced from: /Users/runner/miniconda3/envs/pandas-dev/lib/libthrift.0.13.0.dylib
5471
# Reason: image not found
55-
sed -i 's/^ - pyarrow$/ - pyarrow=6/' ${ENV_FILE}
72+
sed -i'' -e 's/^ - pyarrow$/ - pyarrow=6/' ${ENV_FILE}
5673
fi
5774
time mamba env update -n pandas-dev --file="${ENV_FILE}"
75+
set +e
5876
echo Have qt?
59-
conda list -f qt --json
77+
mamba list -n pandas-dev -f qt --json
6078
echo Have pandas?
61-
pip list | grep pandas
62-
echo "Build extensions"
63-
time DISTUTILS_C_COMPILER_LAUNCHER=sccache python setup.py build_ext -q -j3
64-
echo "Install pandas"
65-
time python -m pip install --no-build-isolation -e .
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 .
6683
sccache -s
84+
displayName: 'Setup environment and build pandas'
6785
68-
- displayName: 'Test'
69-
script: |
70-
conda run -n pandas-dev --no-capture-output ci/run_tests.sh
86+
- script: |
87+
mamba run --no-capture-output -n pandas-dev ci/run_tests.sh
88+
displayName: 'Test'
7189
72-
- displayName: 'Build versions'
73-
script: |
90+
- script: |
7491
pushd /tmp
75-
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()"
7693
popd
94+
displayName: 'Build versions'
7795
78-
- displayName: 'Publish test results'
79-
task: PublishTestResults@2
96+
- task: PublishTestResults@2
8097
condition: succeededOrFailed()
8198
inputs:
8299
failTaskOnFailedTests: true
83100
testResultsFiles: 'test-data.xml'
84101
testRunTitle: ${{ format('{0}-$(CONDA_PY)', parameters.name) }}
102+
displayName: 'Publish test results'

0 commit comments

Comments
 (0)