-
Notifications
You must be signed in to change notification settings - Fork 21
54 lines (54 loc) · 1.54 KB
/
test.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
44
45
46
47
48
49
50
51
52
53
54
# based on https://github.com/mamba-org/provision-with-micromamba
name: test
on:
push:
branches: master
pull_request:
branches: master
jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
dependency-set: ["-old", ""]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
exclude:
- dependency-set: "-old"
python-version: "3.9"
- dependency-set: "-old"
python-version: "3.10"
- dependency-set: "-old"
python-version: "3.11"
- dependency-set: "-old"
python-version: "3.12"
name: test
steps:
- uses: actions/checkout@v4
- name: install mamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: conda/bicycleparameters-dev${{ matrix.dependency-set }}.yml
environment-name: bicycleparameters-dev${{ matrix.dependency-set }}
cache-env: true
extra-specs: |
python=${{ matrix.python-version }}
- name: run tests
shell: bash -l {0}
run: |
micromamba info
micromamba list
python -c "import bicycleparameters"
py.test --doctest-modules bicycleparameters/
- name: build documentation
shell: bash -l {0}
run: |
micromamba info
micromamba list
cd docs
make html
- name: test installation
shell: bash -l {0}
run: |
micromamba info
micromamba list
python setup.py install