-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.4 KB
/
test.yaml
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
47
48
49
50
51
52
53
name: Tests
on:
push:
branches:
- develop
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
allow-softlinks: true
channel-priority: flexible
show-channel-urls: true
- name: Install dependencies
run: |
conda install --yes pip
pip install coverage
pip install coveralls
conda install --yes numpy scipy scikit-learn nose evomsa
python setup.py build_ext --inplace
- name: Tests on Linux
if: ${{ runner.os == 'Linux' }}
run: |
which python
python --version
which coverage
nosetests --verbose --with-coverage --cover-package=dialectid dialectid/tests
- name: Tests on macOS and Windows
if: ${{ runner.os != 'Linux' }}
run: |
nosetests --verbose dialectid/tests
- name: coveralls
if: ${{ runner.os == 'Linux' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github