Skip to content

Tests

Tests #646

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 0 * * 5"
jobs:
Test:
name: ${{ matrix.os }}, ${{ matrix.environment-file }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
environment-file: [ci/envs/latest.yaml]
include:
- environment-file: ci/envs/minimal.yaml
os: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ${{ matrix.environment-file }}
micromamba-version: "latest"
- name: Install clustergram
run: pip install .
- name: Test clustergram
run: |
pytest -v --color=yes --cov-config .coveragerc --cov=clustergram --cov-report term-missing --cov-report xml .
- name: Run Ruff
run: ruff --output-format=github .
- uses: codecov/codecov-action@v4