Implement MST class #22
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: | |
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 . |