Skip to content

Commit

Permalink
Don't install optional requirements for tests only in Python3.7 under…
Browse files Browse the repository at this point in the history
… Linux
  • Loading branch information
mondeja committed May 24, 2021
1 parent b255f44 commit 5e1d59a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,25 @@ jobs:
which python
python -m site --user-site
- name: Install Dependencies
- name: Install common requirements
run: |
python -m pip install --upgrade wheel setuptools
- name: Install test requirements
if: ${{ matrix.python-version == '3.7' }}
run: |
python -m pip install --upgrade wheel
python -m pip install --upgrade setuptools
python -m pip install ".[test, doc]"
cat /etc/ImageMagick-6/policy.xml | sed 's/none/read,write/g' | sudo tee /etc/ImageMagick-6/policy.xml
- name: Install test and optional requirements
if: ${{ matrix.python-version != '3.7' }}
run: |
python -m pip install ".[test, optional, doc]"
- name: Configure ImageMagick policy
run: |
cat /etc/ImageMagick-6/policy.xml \
| sed 's/none/read,write/g' \
| sudo tee /etc/ImageMagick-6/policy.xml
- name: PyTest
run: |
Expand Down

0 comments on commit 5e1d59a

Please sign in to comment.