Skip to content
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

[EXP] ci: simplify windows build, stop using conda #2980

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ jobs:
with:
submodules: recursive
fetch-depth: 0
- uses: s-weigand/setup-conda@v1
if: matrix.os == 'windows-latest'
with:
update-conda: true
conda-channels: conda-forge
activate-conda: true
python-version: ${{matrix.python-version}}
- name: Install dependencies and yt
shell: bash
env:
Expand Down
21 changes: 3 additions & 18 deletions tests/ci_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,9 @@ cat $HOME/.config/yt/ytrc
cp tests/matplotlibrc .

# Step 1: pre-install required packages
if [[ "${RUNNER_OS}" == "Windows" ]] && [[ ${dependencies} != "minimal" ]]; then
# Install some dependencies using conda (if not doing a minimal run)
CYTHON=$(grep cython tests/test_prerequirements.txt)
NUMPY=$(grep numpy tests/test_prerequirements.txt)

CARTOPY=$(grep cartopy tests/test_requirements.txt)
H5PY=$(grep h5py tests/test_requirements.txt)
MATPLOTLIB=$(grep matplotlib tests/test_requirements.txt)
SCIPY=$(grep scipy tests/test_requirements.txt)
conda config --set always_yes yes
conda info -a
conda install --quiet --yes -c conda-forge \
$CYTHON $NUMPY $CARTOPY $H5PY $MATPLOTLIB $SCIPY
else
python -m pip install --upgrade pip
python -m pip install --upgrade wheel
python -m pip install --upgrade setuptools
fi
python -m pip install --upgrade pip
python -m pip install --upgrade wheel
python -m pip install --upgrade setuptools

# Step 2: install required packages (depending on whether the build is minimal)
if [[ ${dependencies} == "minimal" ]]; then
Expand Down