Skip to content

Commit 780e6f6

Browse files
committed
ci: disable legacy workflows in favor of reusable CI
1 parent e26a827 commit 780e6f6

4 files changed

Lines changed: 37 additions & 14 deletions

File tree

.github/workflows/api_branch_ci.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: API Tests + Docker build (branch)
22
run-name: 'Test branch commit "${{ github.event.head_commit.message }}"'
33

4-
on:
5-
push:
6-
branches-ignore: [ "main" ]
7-
paths-ignore: ['README.md']
4+
# on:
5+
# push:
6+
# branches-ignore: [ "main" ]
7+
# paths-ignore: ['README.md']
8+
on:
9+
workflow_dispatch:
10+
811

912
jobs:
1013
branch_ci:

.github/workflows/branch_ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Branch CI
2+
3+
on:
4+
push:
5+
branches-ignore: ["main"]
6+
pull_request:
7+
8+
jobs:
9+
run-ci:
10+
uses: openclimatefix/.github/.github/workflows/branch_ci@main
11+
secrets:
12+
HF_TOKEN: ${{ secrets.HF_TOKEN }}

.github/workflows/pytest.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
name: Python package tests - integration
22

3+
# on:
4+
# push:
5+
# schedule:
6+
# - cron: "0 12 * * 1"
37
on:
4-
push:
58
schedule:
69
- cron: "0 12 * * 1"
10+
workflow_dispatch:
11+
712

813
jobs:
914

1015
call-run-python-tests-integration:
1116
# only run on push, not external PR
1217
uses: openclimatefix/.github/.github/workflows/python-test.yml@issue/pip-all
13-
if: github.event_name == 'push'
18+
1419
with:
1520
# pytest-cov looks at this folder
1621
pytest_cov_dir: "quartz_solar_forecast"

.github/workflows/pytest_unit.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
name: Unit Tests(branch)
22
run-name: 'Test branch commit "${{ github.event.head_commit.message }}"'
33

4-
on:
5-
push:
6-
branches-ignore: [ "main" ]
7-
paths-ignore: ['README.md']
8-
pull_request:
9-
types: [opened, synchronize, reopened]
10-
pull_request_target:
11-
types: [opened, synchronize, reopened, ready_for_review]
4+
# on:
5+
# push:
6+
# branches-ignore: [ "main" ]
7+
# paths-ignore: ['README.md']
8+
# pull_request:
9+
# types: [opened, synchronize, reopened]
10+
# pull_request_target:
11+
# types: [opened, synchronize, reopened, ready_for_review]
12+
on:
13+
workflow_dispatch:
14+
1215

1316
jobs:
1417
branch_ci:

0 commit comments

Comments
 (0)