-
Notifications
You must be signed in to change notification settings - Fork 21
59 lines (59 loc) · 1.69 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
55
56
57
58
59
# 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: ["-old", ""]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
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"
- dependency-set: "-old"
python-version: "3.13"
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: conda/bicycleparameters-dev${{ matrix.dependency-set }}.yml
- name: run tests
shell: bash -l {0}
run: |
conda info
conda list
python -c "import bicycleparameters"
py.test --doctest-modules bicycleparameters/
- 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