Skip to content

Commit 0d33813

Browse files
Bordalantiga
authored andcommitted
ci: unfreeze for master (#17116)
* ci unfreeze for master * accept str * crone * is in * str * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit 210c728)
1 parent 253ee12 commit 0d33813

File tree

10 files changed

+20
-15
lines changed

10 files changed

+20
-15
lines changed

.github/workflows/schedule-clear-cache.yml renamed to .github/workflows/call-clear-cache.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Clear cache weekly
22

33
on:
4-
schedule:
5-
# on Sundays
6-
- cron: "0 0 * * 0"
74
workflow_dispatch:
85
inputs:
96
pattern:

.github/workflows/ci-flagship-apps.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- ".github/workflows/ci-flagship-apps.yml"
1212
- "github/actions/prep-apps/action.yml"
1313
- "tests/integrations_app/flagship/**"
14+
schedule:
15+
# on Sundays
16+
- cron: "0 0 * * 0"
1417

1518
concurrency:
1619
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}

.github/workflows/ci-tests-app.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
- "!requirements/*/docs.txt"
1818
- "!*.md"
1919
- "!**/*.md"
20+
schedule:
21+
# At the end of every day
22+
- cron: "0 0 * * *"
2023

2124
concurrency:
2225
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
@@ -44,7 +47,7 @@ jobs:
4447
- {os: "windows-2022", pkg-name: "lightning", python-version: "3.8", requires: "latest"}
4548
env:
4649
PACKAGE_NAME: ${{ matrix.pkg-name }}
47-
FREEZE_REQUIREMENTS: 1
50+
FREEZE_REQUIREMENTS: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
4851
# Timeout: https://stackoverflow.com/a/59076067/4521646
4952
timeout-minutes: 30
5053

.github/workflows/ci-tests-fabric.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
- "!requirements/*/docs.txt"
1818
- "!*.md"
1919
- "!**/*.md"
20+
schedule:
21+
# At the end of every day
22+
- cron: "0 0 * * *"
2023

2124
concurrency:
2225
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
@@ -64,7 +67,7 @@ jobs:
6467
env:
6568
PACKAGE_NAME: ${{ matrix.pkg-name }}
6669
TORCH_URL: "https://download.pytorch.org/whl/cpu/torch_stable.html"
67-
FREEZE_REQUIREMENTS: 1
70+
FREEZE_REQUIREMENTS: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
6871

6972
steps:
7073
- uses: actions/checkout@v3

.github/workflows/ci-tests-pytorch.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@ on:
2020
- "!requirements/pytorch/docs.txt"
2121
- "!*.md"
2222
- "!**/*.md"
23+
schedule:
24+
# At the end of every day
25+
- cron: "0 0 * * *"
2326

2427
concurrency:
2528
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
2629
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
2730

28-
env:
29-
PACKAGE_NAME: pytorch
30-
FREEZE_REQUIREMENTS: 1
31-
3231
defaults:
3332
run:
3433
shell: bash
@@ -75,7 +74,7 @@ jobs:
7574
env:
7675
PACKAGE_NAME: ${{ matrix.pkg-name }}
7776
TORCH_URL: "https://download.pytorch.org/whl/cpu/torch_stable.html"
78-
FREEZE_REQUIREMENTS: 1
77+
FREEZE_REQUIREMENTS: ${{ ! (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
7978
steps:
8079
- uses: actions/checkout@v3
8180

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
_PATH_ROOT = os.path.dirname(__file__)
6363
_PATH_SRC = os.path.join(_PATH_ROOT, "src")
6464
_PATH_REQUIRE = os.path.join(_PATH_ROOT, "requirements")
65-
_FREEZE_REQUIREMENTS = bool(int(os.environ.get("FREEZE_REQUIREMENTS", 0)))
65+
_FREEZE_REQUIREMENTS = os.environ.get("FREEZE_REQUIREMENTS", "0").lower() in ("1", "true")
6666

6767

6868
def _load_py_module(name: str, location: str) -> ModuleType:

src/lightning/__setup__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
_SOURCE_ROOT = os.path.join(_PROJECT_ROOT, "src")
1212
_PACKAGE_ROOT = os.path.join(_SOURCE_ROOT, "lightning")
1313
_PATH_REQUIREMENTS = os.path.join(_PROJECT_ROOT, "requirements")
14-
_FREEZE_REQUIREMENTS = bool(int(os.environ.get("FREEZE_REQUIREMENTS", 0)))
14+
_FREEZE_REQUIREMENTS = os.environ.get("FREEZE_REQUIREMENTS", "0").lower() in ("1", "true")
1515

1616

1717
def _load_py_module(name: str, location: str) -> ModuleType:

src/lightning_app/__setup__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
_SOURCE_ROOT = os.path.join(_PROJECT_ROOT, "src")
1212
_PACKAGE_ROOT = os.path.join(_SOURCE_ROOT, "lightning_app")
1313
_PATH_REQUIREMENTS = os.path.join("requirements", "app")
14-
_FREEZE_REQUIREMENTS = bool(int(os.environ.get("FREEZE_REQUIREMENTS", 0)))
14+
_FREEZE_REQUIREMENTS = os.environ.get("FREEZE_REQUIREMENTS", "0").lower() in ("1", "true")
1515

1616

1717
def _load_py_module(name: str, location: str) -> ModuleType:

src/lightning_fabric/__setup__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
_SOURCE_ROOT = os.path.join(_PROJECT_ROOT, "src")
1313
_PACKAGE_ROOT = os.path.join(_SOURCE_ROOT, "lightning_fabric")
1414
_PATH_REQUIREMENTS = os.path.join("requirements", "fabric")
15-
_FREEZE_REQUIREMENTS = bool(int(os.environ.get("FREEZE_REQUIREMENTS", 0)))
15+
_FREEZE_REQUIREMENTS = os.environ.get("FREEZE_REQUIREMENTS", "0").lower() in ("1", "true")
1616

1717

1818
def _load_py_module(name: str, location: str) -> ModuleType:

src/pytorch_lightning/__setup__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
_SOURCE_ROOT = os.path.join(_PROJECT_ROOT, "src")
1313
_PACKAGE_ROOT = os.path.join(_SOURCE_ROOT, "pytorch_lightning")
1414
_PATH_REQUIREMENTS = os.path.join("requirements", "pytorch")
15-
_FREEZE_REQUIREMENTS = bool(int(os.environ.get("FREEZE_REQUIREMENTS", 0)))
15+
_FREEZE_REQUIREMENTS = os.environ.get("FREEZE_REQUIREMENTS", "0").lower() in ("1", "true")
1616

1717

1818
def _load_py_module(name: str, location: str) -> ModuleType:

0 commit comments

Comments
 (0)