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
-
18
12
jobs :
19
13
lint :
20
14
runs-on : ubuntu-20.04
@@ -77,22 +71,24 @@ jobs:
77
71
78
72
with :
79
73
submodules : recursive
80
- - name : Install miniconda.
81
- uses : conda-incubator /setup-miniconda @v2.0.1 # https://github.com/conda-incubator/setup-miniconda.
74
+ - name : Set up Python ${{ matrix.python-version }}
75
+ uses : actions /setup-python @v2.2.1
82
76
with :
83
- channels : conda-forge,defaults
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.
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
89
82
if : runner.os == 'Linux'
90
- - name : install requirements (Windows )
91
- run : conda install python=${{ matrix.python-version }} tox nasm
92
- if : runner.os == 'Windows '
83
+ - name : Install build dependencies (Macos )
84
+ run : brew install nasm automake autoconf
85
+ if : runner.os == 'macOS '
93
86
- name : Set MSVC developer prompt
94
87
95
88
if : runner.os == 'Windows'
89
+ - name : Install nasm (Windows)
90
+
91
+ if : runner.os == 'Windows'
96
92
- name : Run tests
97
93
run : tox -e py3
98
94
- name : Upload coverage report
@@ -102,6 +98,11 @@ jobs:
102
98
# dynamically to the conda isa-l package.
103
99
test-dynamic :
104
100
runs-on : ${{ matrix.os }}
101
+ defaults :
102
+ run :
103
+ # This is needed for miniconda, see:
104
+ # https://github.com/marketplace/actions/setup-miniconda#important.
105
+ shell : bash -l {0}
105
106
needs : lint
106
107
strategy :
107
108
matrix :
@@ -135,22 +136,19 @@ jobs:
135
136
136
137
with :
137
138
submodules : recursive
138
- - name : Install miniconda.
139
- uses :
conda-incubator/[email protected] # https://github.com/conda-incubator/setup-miniconda.
140
- with :
141
- channels : conda-forge,defaults
142
- - name : Install build dependencies (Linux)
143
- run : conda install python
144
- if : runner.os == 'Linux'
139
+ - uses : actions/setup-python@v2
140
+ name : Install Python
141
+ - name : Install cibuildwheel twine
142
+ run : python -m pip install cibuildwheel twine
145
143
- name : Install build dependencies (Macos)
146
- run : conda install nasm automake autoconf python
144
+ run : brew install nasm automake autoconf
147
145
if : runner.os == 'macOS'
148
- - name : Install build dependencies (Windows)
149
- run : conda install nasm python
150
- if : runner.os == 'Windows'
151
146
- name : Set MSVC developer prompt
152
147
153
148
if : runner.os == 'Windows'
149
+ - name : Install nasm (Windows)
150
+
151
+ if : runner.os == 'Windows'
154
152
- name : Install cibuildwheel twine wheel
155
153
run : python -m pip install cibuildwheel twine wheel
156
154
- name : Build wheels
0 commit comments