Skip to content

Commit 6b06907

Browse files
committed
Only one install command
1 parent 3320899 commit 6b06907

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ on:
99
tags:
1010
- "*"
1111

12-
defaults:
13-
run:
14-
# This is needed for miniconda, see:
15-
# https://github.com/marketplace/actions/setup-miniconda#important.
16-
shell: bash -l {0}
1712

1813
jobs:
1914
lint:
@@ -60,6 +55,11 @@ jobs:
6055
test-static:
6156
needs: lint
6257
runs-on: ${{ matrix.os }}
58+
defaults:
59+
run:
60+
# This is needed for miniconda, see:
61+
# https://github.com/marketplace/actions/setup-miniconda#important.
62+
shell: bash -l {0}
6363
strategy:
6464
matrix:
6565
python-version:
@@ -81,20 +81,15 @@ jobs:
8181
uses: conda-incubator/[email protected] # https://github.com/conda-incubator/setup-miniconda.
8282
with:
8383
channels: conda-forge,bioconda,defaults
84-
- name: Install requirements (universal)
85-
run: conda install python=${{ matrix.python-version }} tox
86-
- name: Install requirements (unix)
87-
run: conda install make automake autoconf libtool
88-
if: runner.os != 'Windows'
84+
- name: Install requirements (MacOS)
85+
run: conda install python=${{ matrix.python-version }} tox make automake autoconf libtool nasm
86+
if: runner.os == 'macOS'
87+
- name: Install requirements (Linux)
88+
run: conda install python=${{ matrix.python-version }} tox make automake autoconf libtool yasm # Yasm in pypa/manylinux images.
89+
if: runner.os == 'Linux'
8990
- name: install requirements (Windows)
91+
run: conda install python=${{ matrix.python-version }} tox vs2019_win-64 nasm
9092
if: runner.os == 'Windows'
91-
run: conda install vs2019_win-64
92-
- name: install assembler (nasm)
93-
run: conda install nasm
94-
if: runner.os != 'Linux'
95-
- name: install assembler (yasm) # Yasm in pypa/manylinux images.
96-
run: conda install yasm
97-
if: runner.os == 'Linux'
9893
- name: Run tests
9994
run: tox -e py3
10095
- name: Upload coverage report
@@ -105,6 +100,11 @@ jobs:
105100
test-dynamic:
106101
runs-on: ${{ matrix.os }}
107102
needs: lint
103+
defaults:
104+
run:
105+
# This is needed for miniconda, see:
106+
# https://github.com/marketplace/actions/setup-miniconda#important.
107+
shell: bash -l {0}
108108
strategy:
109109
matrix:
110110
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
@@ -118,9 +118,6 @@ jobs:
118118
channels: conda-forge,bioconda,defaults
119119
- name: Install requirements (universal)
120120
run: conda install isa-l python tox
121-
- name: Install requirements (unix)
122-
run: conda install make automake autoconf libtool
123-
if: runner.os != 'Windows'
124121
- name: install requirements (Windows)
125122
if: runner.os == 'Windows'
126123
run: conda install vs2019_win-64

0 commit comments

Comments
 (0)