diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 76786d3e5..23c599f80 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -63,7 +63,7 @@ jobs: run: python3 -m pip install --upgrade dist/${{ steps.glob.outputs.paths }}[dev] - name: Test with pytest - run: python3 -m pytest --showlocals -n auto --cov=galois --cov-report=xml tests/ + run: python3 -m pytest -n auto --cov=galois --cov-report=xml tests/ - name: Upload coverage report uses: codecov/codecov-action@v3 diff --git a/pyproject.toml b/pyproject.toml index b10371d88..c5d34f01a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -133,7 +133,7 @@ profile = "black" [tool.pytest.ini_options] minversion = "6.2" -addopts = "-vv --showlocals" +addopts = "-s --showlocals" testpaths = [ "tests" ] diff --git a/tests/codes/conftest.py b/tests/codes/conftest.py index e21a52b2d..0d7960b89 100644 --- a/tests/codes/conftest.py +++ b/tests/codes/conftest.py @@ -35,8 +35,6 @@ def get_filenames(path: pathlib.Path) -> list[str]: def read_pickle(file): with open(file, "rb") as f: - # logging.info("Unpickling file %s", file) - print(f"Unpickling file {file}") dict_ = pickle.load(f) return dict_ diff --git a/tests/conftest.py b/tests/conftest.py index 90375a0af..db045d015 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -4,19 +4,27 @@ import os import pickle +import numba +import numpy import pytest -FOLDER = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data") +import galois +print("\nTested versions:") +print(f" galois: {galois.__version__}") +print(f" numpy: {numpy.__version__}") +print(f" numba: {numba.__version__}") +print() ############################################################################### # Helper functions ############################################################################### +FOLDER = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data") + def read_pickle(filename): with open(os.path.join(FOLDER, filename), "rb") as f: - print(f"Loading {f}...") d = pickle.load(f) return d diff --git a/tests/fields/conftest.py b/tests/fields/conftest.py index a12ef4d2a..9107f5974 100644 --- a/tests/fields/conftest.py +++ b/tests/fields/conftest.py @@ -128,7 +128,6 @@ def read_json(field_folder, filename): def read_pickle(field_folder, filename): GF, folder = field_folder with open(os.path.join(folder, filename), "rb") as f: - print(f"Loading {f}...") d = pickle.load(f) return GF, d diff --git a/tests/polys/conftest.py b/tests/polys/conftest.py index d72cfd598..461a5d475 100644 --- a/tests/polys/conftest.py +++ b/tests/polys/conftest.py @@ -23,7 +23,6 @@ def read_pickle(field_folder, filename): # Convert from folder in fields/data/ to polys/data/ folder = os.path.join(folder, "..", "..", "..", "polys", "data", os.path.basename(folder)) with open(os.path.join(folder, filename), "rb") as f: - print(f"Loading {f}...") d = pickle.load(f) return GF, d