Fix tests, bump python version to 3.11 #127
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: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '**' | |
pull_request: | |
jobs: | |
tests: | |
name: test coverage | |
strategy: | |
matrix: | |
include: | |
- python-version: "3.11" | |
os: ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: create and activate env | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: mutis | |
environment-file: environment.yml | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- name: install mutis | |
run: | | |
pip install -e . | |
- name: test coverage | |
run: | | |
make test-cov | |
codecov -X gcov | |
docs: | |
name: docs building | |
strategy: | |
matrix: | |
include: | |
- python-version: "3.11" | |
os: ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: create and activate env | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: mutis | |
environment-file: environment.yml | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- name: install mutis | |
run: | | |
pip install -e . | |
- name: build docs | |
run: | | |
make docs-sphinx |