-
Notifications
You must be signed in to change notification settings - Fork 32
57 lines (57 loc) · 1.63 KB
/
Copy pathtest.yml
File metadata and controls
57 lines (57 loc) · 1.63 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
47
48
49
50
51
52
53
54
55
56
57
# based on https://github.com/mamba-org/provision-with-micromamba
name: test
on:
push:
branches: master
pull_request:
branches: master
# cancels prior builds for this workflow when new commit is pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
dependency-set: ["-oldest", "-latest"]
python-version: ["2.7", "3.7", "3.8"]
exclude:
- dependency-set: "-oldest"
python-version: "3.7"
- dependency-set: "-oldest"
python-version: "3.8"
- dependency-set: "-oldest"
python-version: "2.7"
- dependency-set: "-latest"
python-version: "2.7"
name: test
steps:
- uses: actions/checkout@v4
- name: Setup Conda environment
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
environment-file: env-dev${{ matrix.dependency-set }}.yml
- name: install octave
shell: bash -l {0}
run: sudo apt-get install -y -qq octave
- name: run tests
shell: bash -l {0}
run: |
nosetests -v --with-coverage --cover-package=gaitanalysis
- name: build documentation
shell: bash -l {0}
run: |
conda info
conda list
cd docs
make html
- name: test installation
shell: bash -l {0}
run: |
conda info
python setup.py install
conda list