Add unit tests for rotations between frames #5
Workflow file for this run
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
name: pip - Build Lint Test and Coverage | |
on: | |
push: | |
branches: [ main, "v*"] | |
pull_request: | |
branches: [ main, "v*"] | |
jobs: | |
build-lint-test-coverage: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.10", "3.11"] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v3 | |
- name: Get git tags | |
run: git fetch --prune --unshallow --tags | |
- name: Set up miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: "adam_core" | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- name: Install openorb using conda | |
run: conda install -c defaults -c conda-forge openorb --yes | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' # caching pip dependencies | |
- name: Build and install | |
run: pip install .[tests] | |
- name: Lint | |
run: pre-commit run --all-files | |
- name: Test | |
run: pytest . --cov --cov-report xml | |
- name: Coverage | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.COVERALLS_TOKEN }} | |
path-to-lcov: coverage.xml |