Skip to content

Commit

Permalink
tests: rerun flaky (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed May 31, 2023
1 parent a746a76 commit d52c665
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ pull_request_rules:
- base=master # apply only on master
- -title~=(?i)wip # skip all PR that title contains “WIP” (ignoring case)
- "#approved-reviews-by>=1" # number of review approvals
- "#changes-requested-reviews-by=0" # no requested changes
actions:
update: {}

# ToDo: enable when the team is indexed correctly
# - name: add core reviewer
# conditions:
# - -conflict # skip if conflict
# - -draft # filter-out GH draft PRs
# - label="ready"
# - "#approved-reviews-by<2" # number of review approvals
# - "#review-requested<2" # number of requested reviews
# actions:
# request_reviews:
# teams:
# - "@Lightning-Universe/core-bolts"
- name: add core reviewer
conditions:
- -conflict # skip if conflict
- -draft # filter-out GH draft PRs
- label="ready"
- "#approved-reviews-by<2" # number of review approvals
- "#review-requested<2" # number of requested reviews
actions:
request_reviews:
teams:
- "@Lightning-Universe/core-bolts"
1 change: 1 addition & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coverage[toml] >7.0.0, <8.0.0
pytest ==7.3.1
pytest-cov ==4.1.0
pytest-rerunfailures ==11.1.2

scikit-learn >=1.0.2, <=1.2.2
sparseml >1.0.0, <1.3.0
Expand Down
2 changes: 2 additions & 0 deletions tests/models/test_classic_ml.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import numpy as np
import pytest
from pytorch_lightning import Trainer, seed_everything
from torch.utils.data import DataLoader

from pl_bolts.datamodules.sklearn_datamodule import SklearnDataset
from pl_bolts.models.regression import LinearRegression


@pytest.mark.flaky(reruns=3)
def test_linear_regression_model(tmpdir):
seed_everything()

Expand Down

0 comments on commit d52c665

Please sign in to comment.