Skip to content

Commit

Permalink
Merge pull request IntelLabs#213 from laserkelvin/pytest-ci-pretty
Browse files Browse the repository at this point in the history
Prettifying PyTest output in Github actions
  • Loading branch information
laserkelvin authored May 13, 2024
2 parents e7f9577 + 6c06ae2 commit a8a8259
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/run_pytest_datasets.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Run data related PyTests
env:
COLUMNS: 120
on:
pull_request:
paths:
Expand Down Expand Up @@ -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: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/run_pytest_endtoend.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Run end-to-end suites for full pipeline coverage
env:
COLUMNS: 120
on:
pull_request:
paths:
Expand Down Expand Up @@ -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: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/run_pytest_lightning.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Run PyTorch Lightning related PyTests
env:
COLUMNS: 120
on:
pull_request:
paths:
Expand All @@ -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: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/run_pytest_models.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Run model and task related PyTests
env:
COLUMNS: 120
on:
pull_request:
paths:
Expand All @@ -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: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/run_pytest_repo.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Run broad spectrum PyTest on demand
env:
COLUMNS: 120
on:
workflow_dispatch:
jobs:
Expand All @@ -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: |
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ all = [
dev = [
"ruff==0.4.0",
"pre-commit",
"pytest"
"pytest",
"pytest-pretty",
"pytest-dependency"
]
pyg = [
"torch_geometric==2.4.0",
Expand All @@ -75,3 +77,6 @@ version = {attr = "matsciml.__version__"}

[tool.ruff.lint]
ignore = ["F403", "F405"]

[tool.pytest.ini_options]
filterwarnings = ["ignore::UserWarning", "ignore::DeprecationWarning"]

0 comments on commit a8a8259

Please sign in to comment.