Skip to content

Commit

Permalink
Testing: Add full list of deps to requirements files
Browse files Browse the repository at this point in the history
Also use conda-forge for testing because it's much more up to date
  • Loading branch information
ccordoba12 committed Jan 6, 2022
1 parent a61e4a8 commit cd88d61
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 17 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/linux-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
fail-fast: false
matrix:
PYTHON_VERSION: ['2.7', '3.7', '3.8', '3.9']
timeout-minutes: 10
steps:
- name: Checkout branch
uses: actions/checkout@v1
Expand All @@ -35,17 +36,16 @@ jobs:
activate-environment: test
auto-update-conda: true
auto-activate-base: false
channels: conda-forge
miniforge-variant: Mambaforge
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Install package dependencies
shell: bash -l {0}
run: |
conda install --file requirements/posix.txt -y -q
if [ "$PYTHON_VERSION" = "2.7" ]; then conda install --file requirements/python-27.txt -y -q; fi
if [ "$PYTHON_VERSION" != "2.7" ]; then mamba install --file requirements/posix.txt -y -q; else mamba install --file requirements/python-27.txt -y -q; fi
- name: Install test dependencies
shell: bash -l {0}
run: |
conda install nomkl -y -q
conda install --file requirements/tests.txt -y -q
run: mamba install --file requirements/tests.txt -y -q
- name: Install Package
shell: bash -l {0}
run: pip install -e .
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/macos-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
fail-fast: false
matrix:
PYTHON_VERSION: ['2.7', '3.7', '3.8', '3.9']
timeout-minutes: 10
steps:
- name: Checkout branch
uses: actions/checkout@v1
Expand All @@ -31,17 +32,16 @@ jobs:
activate-environment: test
auto-update-conda: true
auto-activate-base: false
channels: conda-forge
miniforge-variant: Mambaforge
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Install package dependencies
shell: bash -l {0}
run: |
conda install --file requirements/posix.txt -y -q
if [ "$PYTHON_VERSION" = "2.7" ]; then conda install --file requirements/python-27.txt -y -q; fi
if [ "$PYTHON_VERSION" != "2.7" ]; then mamba install --file requirements/posix.txt -y -q; else mamba install --file requirements/python-27.txt -y -q; fi
- name: Install test dependencies
shell: bash -l {0}
run: |
conda install nomkl -y -q
conda install --file requirements/tests.txt -y -q
run: mamba install --file requirements/tests.txt -y -q
- name: Install Package
shell: bash -l {0}
run: pip install -e .
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/windows-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
fail-fast: false
matrix:
PYTHON_VERSION: ['3.7', '3.8', '3.9']
timeout-minutes: 10
steps:
- name: Checkout branch
uses: actions/checkout@v1
Expand All @@ -31,14 +32,16 @@ jobs:
activate-environment: test
auto-update-conda: true
auto-activate-base: false
channels: conda-forge
miniforge-variant: Mambaforge
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Install package dependencies
shell: bash -l {0}
run: conda install --file requirements/windows.txt -y -q
run: mamba install --file requirements/windows.txt -y -q
- name: Install test dependencies
shell: bash -l {0}
run: |
conda install --file requirements/tests.txt -y -q
mamba install --file requirements/tests.txt -y -q
- name: Install Package
shell: bash -l {0}
run: pip install -e .
Expand Down
6 changes: 4 additions & 2 deletions requirements/posix.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
cloudpickle
ipykernel
ipykernel>=6.6.1
ipython>=7.6.0,<8
jupyter_client>=7.1.0
pyzmq>=17
wurlitzer>=1.0.3
ipython<8
9 changes: 8 additions & 1 deletion requirements/python-27.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
click =7
decorator<5
backports.functools_lru_cache
cloudpickle
ipykernel<5
jupyter_client>=5.3.4,<6
pyzmq>=17
wurlitzer>=1.0.3
# To avoid an error with conda
click =7
6 changes: 4 additions & 2 deletions requirements/windows.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cloudpickle
ipykernel
ipykernel>=6.6.1
ipython>=7.6.0,<8
jupyter_client>=7.1.0
pyzmq>=17
# Pin pip version since we are getting 9.x and it causes IPython 6.1.0 to be installed
pip>=19.3.1
ipython<8

0 comments on commit cd88d61

Please sign in to comment.