Skip to content

Commit 1b4a33f

Browse files
committed
Use pip instead of conda in the main tests CI job
1 parent 3b41b94 commit 1b4a33f

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,42 +14,11 @@ jobs:
1414
python-version: ${{ matrix.python-version }}
1515
- name: Install Dependencies
1616
run: |
17-
set -x
18-
set -e
19-
# $CONDA is an environment variable pointing to the root of the miniconda directory
20-
echo $CONDA/bin >> $GITHUB_PATH
21-
conda config --set always_yes yes --set changeps1 no
22-
conda config --add channels conda-forge
23-
conda update -q conda
24-
conda info -a
25-
conda create -n test-environment python=${{ matrix.python-version }} pytest numpy
26-
conda init
17+
python -m pip install --upgrade pip
18+
python -m install pytest numpy
2719
2820
- name: Run Tests
2921
run: |
30-
# Copied from .bashrc. We can't just source .bashrc because it exits
31-
# when the shell isn't interactive.
32-
33-
# >>> conda initialize >>>
34-
# !! Contents within this block are managed by 'conda init' !!
35-
__conda_setup="$('/usr/share/miniconda/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
36-
if [ $? -eq 0 ]; then
37-
eval "$__conda_setup"
38-
else
39-
if [ -f "/usr/share/miniconda/etc/profile.d/conda.sh" ]; then
40-
. "/usr/share/miniconda/etc/profile.d/conda.sh"
41-
else
42-
export PATH="/usr/share/miniconda/bin:$PATH"
43-
fi
44-
fi
45-
unset __conda_setup
46-
# <<< conda initialize <<<
47-
48-
set -x
49-
set -e
50-
51-
conda activate test-environment
52-
5322
pytest
5423
5524
# Make sure it installs

0 commit comments

Comments
 (0)