Skip to content

Commit

Permalink
test: linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert W committed Oct 24, 2024
1 parent 3682934 commit 3e50a3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/tomlproject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
test:
strategy:
matrix:
os: [windows-latest] # Chose windows-latest, ubuntu-latest, macos-latest.
os: [windows-latest, ubuntu-latest] # Chose windows-latest, ubuntu-latest, macos-latest.
python-version: ['3.9', '3.10', '3.11', '3.12'] # Test multiple Python versions
runs-on: ${{ matrix.os }}

Expand All @@ -34,5 +34,3 @@ jobs:
- name: Run Tests
run: |
pytest --cov=pvcircuit
coverage xml
coverage html
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Python Tests](https://github.com/NREL/PVcircuit/actions/workflows/tomlproject.yml/badge.svg?branch=master)](https://github.com/NREL/PVcircuit/actions/workflows/tomlproject.yml)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)

# pvcircuit
*pvcircuit* contains objects that are building blocks for PV modeling and interactive data fitting.
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ ignore = [
[tool.pytest.ini_options]
# Specify directories to ignore during testing
norecursedirs = ["Share", "notebooks", "images", "data"]
addopts = "--cov=pvcircuit --cov-report=html" # run coverage automatically with pytest

[tool.coverage.run]
branch = true
Expand All @@ -217,4 +218,8 @@ omit = [
]

[tool.coverage.report]
show_missing = false
show_missing = true # shows lines without coverage

[tool.coverage.html]
directory = "htmlcov" # HTML output directory
title = "PVcircuit coverage report"

0 comments on commit 3e50a3b

Please sign in to comment.