9
9
tags :
10
10
- " *"
11
11
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}
17
+
12
18
jobs :
13
19
lint :
14
20
runs-on : ubuntu-20.04
@@ -71,21 +77,24 @@ jobs:
71
77
72
78
with :
73
79
submodules : recursive
74
- - name : Set up Python ${{ matrix.python-version }}
75
- uses : actions /setup-python @v2.2.1
80
+ - name : Install miniconda.
81
+ uses : conda-incubator /setup-miniconda @v2.0.1 # https://github.com/conda-incubator/setup-miniconda.
76
82
with :
77
- python-version : ${{ matrix.python-version }}
78
- - name : Install tox and upgrade setuptools
79
- run : pip install --upgrade tox setuptools
80
- - name : Install build dependencies (Linux) # Yasm in pypa/manylinux images.
81
- run : sudo apt install yasm
82
- if : runner.os == 'Linux'
83
- - name : Install build dependencies (Macos)
84
- run : brew install nasm automake autoconf
85
- if : runner.os == 'macOS'
86
- - name : install build dependencies (Windows)
87
- run : conda install nasm vs2019_win-64
83
+ 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'
89
+ - name : install requirements (Windows)
88
90
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'
89
98
- name : Run tests
90
99
run : tox -e py3
91
100
- name : Upload coverage report
@@ -96,11 +105,6 @@ jobs:
96
105
test-dynamic :
97
106
runs-on : ${{ matrix.os }}
98
107
needs : lint
99
- defaults :
100
- run :
101
- # This is needed for miniconda, see:
102
- # https://github.com/marketplace/actions/setup-miniconda#important.
103
- shell : bash -l {0}
104
108
strategy :
105
109
matrix :
106
110
os : ["ubuntu-latest", "macos-latest", "windows-latest"]
0 commit comments