-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (36 loc) · 935 Bytes
/
runtests.yml
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
name: Run tests and build docs
on:
push:
branches: master
pull_request:
branches: master
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true
environment-file: yeadon-dev-env.yml
environment-name: yeadon-dev
extrax-specs: |
python=${{ matrix.python }}
- name: Run the tests
shell: bash -l {0}
run: |
nosetests -v --with-coverage --cover-package=yeadon
- name: Build the documentation
shell: bash -l {0}
run: |
cd doc && make html
- name: Install the software
shell: bash -l {0}
run: |
python setup.py install