Tests #644
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: 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 |