Skip to content

Implement MST class #15

Implement MST class

Implement MST class #15

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
- "dev*"
jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.8, 3.11]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Update pip and install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ".[test]" pytest-sugar
- name: Run tests
run: |
python -m pytest --cov=centhesus --cov-fail-under=100 tests
- name: Install and run linters
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11
run: |
python -m pip install ".[lint]"
python -m black --check .
python -m ruff .