Skip to content

Example the importance of load_case_engine #37

Example the importance of load_case_engine

Example the importance of load_case_engine #37

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- master
jobs:
linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: 'pip'
cache-dependency-path: 'requirements-dev.txt'
- name: Install Ruff
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff
run: ruff check .
build:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
platform: [octave]
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
steps:
- name: Clone this 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'
cache-dependency-path: 'requirements-dev.txt'
- name: Install Octave (Linux)
if: matrix.platform == 'octave'
uses: MATPOWER/action-install-octave-linux@v1
- name: Install package
run: |
pip install -e ."[dev]"
- name: Generate coverage report
run: |
pytest -vvv -n auto --cov=matpowercaseframes --cov-report=xml:unit.coverage.xml
# - name: Upload unit test coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: ./unit.coverage.xml
# flags: unit
# env_vars: PYTHON
# name: codecov-unit
# fail_ci_if_error: false