Create a documentation page(s) that show parameter values and figures for all bicycles and riders #171
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |