forked from dmlc/gluon-nlp
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.42 KB
/
Copy pathunittests.yml
File metadata and controls
46 lines (41 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: continuous build
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
unittest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# TODO Add windows test by using "windows-latest"
os: [macos-latest, ubuntu-latest]
python-version: [ '3.6', '3.7', '3.8']
steps:
- name: Checkout repository
uses: actions/checkout@v2
# Install OS specific dependencies
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
# TODO https://github.com/apache/incubator-mxnet/issues/18293
run: sudo apt-get install libopenblas-dev
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Other Dependencies
run: |
python -m pip install --user --upgrade pip
python -m pip install --user setuptools pytest pytest-cov
python -m pip install --upgrade cython
python -m pip install --pre --user 'mxnet>=2.0.0b20200604,<2.0.0b20200621' -f https://dist.mxnet.io/python
python -m pip install --user -e .[extras]
- name: Test project
run: |
python -m pytest --cov=./ --cov-report=xml --durations=50 tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
env_vars: OS,PYTHON