Skip to content

Commit 3320899

Browse files
committed
Build with conda python
1 parent 2154989 commit 3320899

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ 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}
17+
1218
jobs:
1319
lint:
1420
runs-on: ubuntu-20.04
@@ -71,21 +77,24 @@ jobs:
7177
- uses: actions/[email protected]
7278
with:
7379
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.
7682
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)
8890
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'
8998
- name: Run tests
9099
run: tox -e py3
91100
- name: Upload coverage report
@@ -96,11 +105,6 @@ jobs:
96105
test-dynamic:
97106
runs-on: ${{ matrix.os }}
98107
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}
104108
strategy:
105109
matrix:
106110
os: ["ubuntu-latest", "macos-latest", "windows-latest"]

0 commit comments

Comments
 (0)