Skip to content

Commit

Permalink
[ci] fix pytest ci action failure
Browse files Browse the repository at this point in the history
Pytest returns exit code 5 whenever it doesn't detect any tests, or skip
them all. In theory, this was done to let people know about broken CI
setups. When `tests/test_basic.py` was renamed to `tests/test_basic.py.old`
(likely due to `new_defm` not being exposed/extant in the epiworldpy
Python module), pytest started failing to detect any tests, failing the
CI action. To fix this we remove the code that calls `new_defm` (which
shouldn't be an issue, since the it was .old'd), and only keep the
version check.
  • Loading branch information
IsaccBarker committed Jun 18, 2024
1 parent e85879f commit f3ebdeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 25 deletions.
4 changes: 4 additions & 0 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import epiworldpy

def test_version():
assert epiworldpy.__version__ == "0.0.1"

Check notice on line 4 in tests/test_basic.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

tests/test_basic.py#L4

The application was found using `assert` in non-test code.
25 changes: 0 additions & 25 deletions tests/test_basic.py.old

This file was deleted.

0 comments on commit f3ebdeb

Please sign in to comment.