Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,3 @@ jobs:
with:
parallel: true
flag-name: py${{ matrix.python-version }}-${{ matrix.os }}

debug: true

coveralls_finish:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
debug: true
19 changes: 10 additions & 9 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

import os
import pathlib
import shutil

Expand All @@ -16,14 +15,16 @@ def test(session: nox.Session) -> None:
session.install("-r", "requirements/requires.txt", "-r", "requirements/testing.txt")
session.install(".", "--no-deps")

args = ["--cov", PROJECT, "-vvv"] + session.posargs

if "CI" in os.environ:
args.append(f"--cov-report=xml:{ROOT.absolute()!s}/coverage.xml")
session.run("pytest", *args)

if "CI" not in os.environ:
session.run("coverage", "report", "--ignore-errors", "--show-missing")
session.run(
"coverage",
"run",
"--source=bmipy,tests",
"--branch",
"--module",
"pytest",
)
session.run("coverage", "report", "--ignore-errors", "--show-missing")
session.run("coverage", "xml", "-o", "coverage.xml")


@nox.session(name="test-cli")
Expand Down
5 changes: 2 additions & 3 deletions requirements/testing.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
coveralls==3.3.1
pytest-cov==4.1.0
pytest==7.4.4
coverage==7.13.5
pytest==9.0.2
Loading