From 59c54aebc18ea5f400f36368526b997c096e6f15 Mon Sep 17 00:00:00 2001 From: Kin Long Kelvin Lee Date: Mon, 13 May 2024 09:16:37 -0700 Subject: [PATCH 1/7] config: filtering out deprecation warnings in global config Signed-off-by: Kin Long Kelvin Lee --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 43dfaf02..29643357 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,3 +75,6 @@ version = {attr = "matsciml.__version__"} [tool.ruff.lint] ignore = ["F403", "F405"] + +[tool.pytest.ini_options] +filterwarnings = ["ignore::UserWarning", "ignore::DeprecationWarning"] From 2ce88d2e864fb8fff15692d9e6da3f511afae728 Mon Sep 17 00:00:00 2001 From: Kin Long Kelvin Lee Date: Mon, 13 May 2024 09:20:09 -0700 Subject: [PATCH 2/7] ci: adding pytest-pretty to datasets action Signed-off-by: Kin Long Kelvin Lee --- .github/workflows/run_pytest_datasets.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_pytest_datasets.yml b/.github/workflows/run_pytest_datasets.yml index 6c83059f..e4f17290 100644 --- a/.github/workflows/run_pytest_datasets.yml +++ b/.github/workflows/run_pytest_datasets.yml @@ -1,4 +1,6 @@ name: Run data related PyTests +env: + COLUMNS: 120 on: pull_request: paths: @@ -26,7 +28,7 @@ jobs: shell: micromamba-shell {0} - name: Install PyTest run: | - pip install pytest pytest-dependency + pip install pytest pytest-dependency pytest-pretty shell: micromamba-shell {0} - name: Print out environment run: | From c097c3dfdf0d0ff3475b1d6ec80066d26623f52b Mon Sep 17 00:00:00 2001 From: Kin Long Kelvin Lee Date: Mon, 13 May 2024 09:20:53 -0700 Subject: [PATCH 3/7] ci: adding pytest pretty to end to end test Signed-off-by: Kin Long Kelvin Lee --- .github/workflows/run_pytest_endtoend.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_pytest_endtoend.yml b/.github/workflows/run_pytest_endtoend.yml index 2203ce96..7644789f 100644 --- a/.github/workflows/run_pytest_endtoend.yml +++ b/.github/workflows/run_pytest_endtoend.yml @@ -1,4 +1,6 @@ name: Run end-to-end suites for full pipeline coverage +env: + COLUMNS: 120 on: pull_request: paths: @@ -31,7 +33,7 @@ jobs: shell: micromamba-shell {0} - name: Install PyTest run: | - pip install pytest pytest-dependency + pip install pytest pytest-dependency pytest-pretty shell: micromamba-shell {0} - name: Print out environment run: | From 954107a3937e5f2edda36ac45bb446203f3e1e03 Mon Sep 17 00:00:00 2001 From: Kin Long Kelvin Lee Date: Mon, 13 May 2024 09:21:23 -0700 Subject: [PATCH 4/7] ci: added pytest pretty to lightning pytests Signed-off-by: Kin Long Kelvin Lee --- .github/workflows/run_pytest_lightning.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_pytest_lightning.yml b/.github/workflows/run_pytest_lightning.yml index 336d866b..11a2a917 100644 --- a/.github/workflows/run_pytest_lightning.yml +++ b/.github/workflows/run_pytest_lightning.yml @@ -1,4 +1,6 @@ name: Run PyTorch Lightning related PyTests +env: + COLUMNS: 120 on: pull_request: paths: @@ -25,7 +27,7 @@ jobs: shell: micromamba-shell {0} - name: Install PyTest run: | - pip install pytest pytest-dependency + pip install pytest pytest-dependency pytest-pretty shell: micromamba-shell {0} - name: Print out environment run: | From 6d51faa6566fa7a1717dc619897bcf91257954f6 Mon Sep 17 00:00:00 2001 From: Kin Long Kelvin Lee Date: Mon, 13 May 2024 09:21:49 -0700 Subject: [PATCH 5/7] ci: adding pretty to model pytests Signed-off-by: Kin Long Kelvin Lee --- .github/workflows/run_pytest_models.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_pytest_models.yml b/.github/workflows/run_pytest_models.yml index 0a19641b..62d4805e 100644 --- a/.github/workflows/run_pytest_models.yml +++ b/.github/workflows/run_pytest_models.yml @@ -1,4 +1,6 @@ name: Run model and task related PyTests +env: + COLUMNS: 120 on: pull_request: paths: @@ -25,7 +27,7 @@ jobs: shell: micromamba-shell {0} - name: Install PyTest run: | - pip install pytest pytest-dependency + pip install pytest pytest-dependency pytest-pretty shell: micromamba-shell {0} - name: Print out environment run: | From d094f1d04937118d0a4c0cb9aeb05d89f0995e5e Mon Sep 17 00:00:00 2001 From: Kin Long Kelvin Lee Date: Mon, 13 May 2024 09:22:18 -0700 Subject: [PATCH 6/7] ci: added pytest pretty to broad spectrum test Signed-off-by: Kin Long Kelvin Lee --- .github/workflows/run_pytest_repo.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_pytest_repo.yml b/.github/workflows/run_pytest_repo.yml index d955c030..c55a41f7 100644 --- a/.github/workflows/run_pytest_repo.yml +++ b/.github/workflows/run_pytest_repo.yml @@ -1,4 +1,6 @@ name: Run broad spectrum PyTest on demand +env: + COLUMNS: 120 on: workflow_dispatch: jobs: @@ -22,7 +24,7 @@ jobs: shell: micromamba-shell {0} - name: Install PyTest run: | - pip install pytest pytest-dependency + pip install pytest pytest-dependency pytest-pretty shell: micromamba-shell {0} - name: Print out environment run: | From 6c06ae24a6dfbe296bb0b3f02d0ebc3eb9d9527b Mon Sep 17 00:00:00 2001 From: Kin Long Kelvin Lee Date: Mon, 13 May 2024 09:23:12 -0700 Subject: [PATCH 7/7] deps: updating pytest dev requirements Signed-off-by: Kin Long Kelvin Lee --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 29643357..442f6408 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,9 @@ all = [ dev = [ "ruff==0.4.0", "pre-commit", - "pytest" + "pytest", + "pytest-pretty", + "pytest-dependency" ] pyg = [ "torch_geometric==2.4.0",