winipedia-utils 0.3.35__py3-none-any.whl → 0.3.38__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of winipedia-utils might be problematic. Click here for more details.

@@ -25,10 +25,15 @@ class Workflow(YamlConfigFile):
25
25
 
26
26
  def get_path(self) -> Path:
27
27
  """Get the path to the config file."""
28
- return (
29
- Path(".github/workflows")
30
- / f"{self.__class__.__name__.lower().removesuffix('workflow')}.yaml"
28
+ file_name = (
29
+ "_".join(
30
+ split_on_uppercase(
31
+ self.__class__.__name__.removesuffix(Workflow.__name__)
32
+ )
33
+ ).lower()
34
+ + ".yaml"
31
35
  )
36
+ return Path(".github/workflows") / file_name
32
37
 
33
38
  @staticmethod
34
39
  def get_standard_job(
@@ -8,7 +8,7 @@ from typing import Any
8
8
  from winipedia_utils.git.workflows.base.base import Workflow
9
9
 
10
10
 
11
- class PullRequestWorkflow(Workflow):
11
+ class HealthCheckWorkflow(Workflow):
12
12
  """Pull request workflow.
13
13
 
14
14
  This workflow is triggered by a pull request.
@@ -21,6 +21,14 @@ class PullRequestWorkflow(Workflow):
21
21
  "pull_request": {
22
22
  "types": ["opened", "synchronize", "reopened"],
23
23
  },
24
+ # also run once a week on main
25
+ "schedule": [
26
+ {
27
+ # run every Sunday at 2:10 am
28
+ "cron": "10 2 * * 0",
29
+ },
30
+ ],
31
+ "workflow_dispatch": {},
24
32
  }
25
33
 
26
34
  def get_permissions(self) -> dict[str, Any]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: winipedia-utils
3
- Version: 0.3.35
3
+ Version: 0.3.38
4
4
  Summary: A package with many utility functions
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -18,9 +18,9 @@ winipedia_utils/git/pre_commit/hooks.py,sha256=KHP-CEo-zv1BJNKfKr2ymUNf69bCX42w2
18
18
  winipedia_utils/git/pre_commit/run_hooks.py,sha256=PVwEDXymeg0OebAx9Vd53vD4UkzVSlCUesKdvfCA6V8,1468
19
19
  winipedia_utils/git/workflows/__init__.py,sha256=BPdntTwFEyBMJ6MyT7gddPHswvRdH9tsRtfK72VSV7Y,57
20
20
  winipedia_utils/git/workflows/base/__init__.py,sha256=XHsbmjiaGom-KX-S3leCY9cJD3aP9p_0X6xYMcdkHBU,23
21
- winipedia_utils/git/workflows/base/base.py,sha256=AnGheOYCestWXLCrvwLuDGj2X5DwScYcpcPWgfPbgRY,7131
21
+ winipedia_utils/git/workflows/base/base.py,sha256=nmLPoMh3Sn8NwFyqIWlaLFy2IA6UlI4G5feGk9d4n4c,7266
22
+ winipedia_utils/git/workflows/health_check.py,sha256=837CCDh26KOwtMeSH9lPt41n51jNNCHn7Ib_3MIJAs8,1387
22
23
  winipedia_utils/git/workflows/publish.py,sha256=8XSSJDpSiDLcowoyKJ06zbZG39v4GRXwGmE7dUykqHw,1342
23
- winipedia_utils/git/workflows/pullrequest.py,sha256=JucLOmMl_T1CV0vA9cPmRozTo1mksDlDUWWQWLrl7pw,1137
24
24
  winipedia_utils/git/workflows/release.py,sha256=3Y-4SN94iNP5IH86iiRXU1HzeZ8OCVNAJCo2gU_QMyI,1198
25
25
  winipedia_utils/iterating/__init__.py,sha256=rlF9hzxbowq5yOfcXvOKOQdB-EQmfrislQpf659Zeu4,53
26
26
  winipedia_utils/iterating/iterate.py,sha256=inipzHP1vgmziObqA-iHU7wi11JseZkeMQ9I6_JJ1xM,3364
@@ -83,7 +83,7 @@ winipedia_utils/testing/tests/conftest.py,sha256=BLgUJtLecOwuEsIyJ__0buqovd5AhiG
83
83
  winipedia_utils/text/__init__.py,sha256=j2bwtK6kyeHI6SnoBjpRju0C1W2n2paXBDlNjNtaUxA,48
84
84
  winipedia_utils/text/config.py,sha256=e6M0AhfzLjLeVqiNTFw_09pMkfhiwVqI9JMRqLykX-w,4661
85
85
  winipedia_utils/text/string.py,sha256=yXmwOab5hXyVQG1NwlWDpy2prj0U7Vb2F5HKLT2Y77Q,3382
86
- winipedia_utils-0.3.35.dist-info/METADATA,sha256=FW8uXeKSa-anZJQi2bWoPvwSosO11tI2ZtJ71SO51f4,9884
87
- winipedia_utils-0.3.35.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
88
- winipedia_utils-0.3.35.dist-info/licenses/LICENSE,sha256=o316mE2gGzd__JT69p7S_zlOmKiHh8YjpImCCcWyTvM,1066
89
- winipedia_utils-0.3.35.dist-info/RECORD,,
86
+ winipedia_utils-0.3.38.dist-info/METADATA,sha256=LIcCFDI-LBWK5fdPyHFu0dyk78vpR-sYQ85Ewva19BU,9884
87
+ winipedia_utils-0.3.38.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
88
+ winipedia_utils-0.3.38.dist-info/licenses/LICENSE,sha256=o316mE2gGzd__JT69p7S_zlOmKiHh8YjpImCCcWyTvM,1066
89
+ winipedia_utils-0.3.38.dist-info/RECORD,,