Merge pull request #40 from metagentools/Vini2-patch-1 #10
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 conda | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
tests: | |
name: "Python ${{ matrix.python-version }}" | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
strategy: | |
matrix: | |
os: [macos-12, ubuntu-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: "actions/checkout@v3" | |
with: | |
fetch-depth: 0 | |
# Setup conda env | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: metacoag | |
environment-file: environment.yml | |
python-version: ${{ matrix.python-version }} | |
auto-activate-base: false | |
- name: "Setup graphbin on ${{ matrix.os }} for Python ${{ matrix.python-version }}" | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
- name: "Generate coverage report on ${{ matrix.os }} for Python ${{ matrix.python-version }}" | |
run: | | |
pip install pytest pytest-cov | |
pytest --cov=graphbin --cov-report=xml --cov-append |