Improve CI workflow consistency.
@@ -27,16 +27,16 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- - name: Update OS & Install APT Dependencies (Ubuntu)
- if: matrix.os == 'ubuntu-18.04'
- run: |
- sudo apt-get --yes install libboost-all-dev libilmbase-dev libopenexr-dev libpng-dev libtiff5-dev
- - name: Update OS & Install APT Dependencies (macOs)
+ - name: Install Dependencies (macOS)
if: matrix.os == 'macOS-latest'
run: |
brew install gnu-sed
ln -s /usr/local/bin/gsed /usr/local/bin/sed
shell: bash
+ - name: Install Dependencies (Ubuntu)
+ if: matrix.os == 'ubuntu-18.04'
+ run: |
+ sudo apt-get --yes install libboost-all-dev libilmbase-dev libopenexr-dev libpng-dev libtiff5-dev
- name: Install Poetry
run: |
curl -L https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py -o get-poetry.py
@@ -49,16 +49,16 @@ jobs:
sed -i.bak 's/python = "~2.7 || ^3.6"/python = "~2.7"/g' pyproject.toml
sed -i.bak '/scipy = "\^1\.1\.0"/ a qtconsole = "4.7.7"' pyproject.toml
shell: bash
- - name: Update pyproject.toml file (Windows, Python 2.7)
- if: matrix.os == 'windows-latest' && matrix.python-version == '2.7'
- run: |
- sed -i.bak '/scipy = "\^1\.1\.0"/ a pywin32 = "228"' pyproject.toml
- shell: bash
- name: Update pyproject.toml file (Python 3.x)
if: matrix.python-version != '2.7'
run: |
sed -i.bak 's/python = "~2.7 || ^3.6"/python = "^3.6"/g' pyproject.toml
shell: bash
+ - name: Update pyproject.toml file (Windows, Python 2.7)
+ if: matrix.os == 'windows-latest' && matrix.python-version == '2.7'
+ run: |
+ sed -i.bak '/scipy = "\^1\.1\.0"/ a pywin32 = "228"' pyproject.toml
+ shell: bash
- name: Install Package Dependencies
run: |
poetry install --extras "optional plotting"
