Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/api_branch_ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: API Tests + Docker build (branch)
run-name: 'Test branch commit "${{ github.event.head_commit.message }}"'

on:
push:
branches-ignore: [ "main" ]
paths-ignore: ['README.md']
# on:
# push:
# branches-ignore: [ "main" ]
# paths-ignore: ['README.md']
on:
workflow_dispatch:


jobs:
branch_ci:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/branch_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Branch CI

on:
push:
branches-ignore: ["main"]
pull_request:

jobs:
run-ci:
uses: openclimatefix/.github/.github/workflows/branch_ci@main
secrets:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
9 changes: 7 additions & 2 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
name: Python package tests - integration

# on:
# push:
# schedule:
# - cron: "0 12 * * 1"
on:
push:
schedule:
- cron: "0 12 * * 1"
workflow_dispatch:


jobs:

call-run-python-tests-integration:
# only run on push, not external PR
uses: openclimatefix/.github/.github/workflows/python-test.yml@issue/pip-all
if: github.event_name == 'push'

with:
# pytest-cov looks at this folder
pytest_cov_dir: "quartz_solar_forecast"
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/pytest_unit.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Unit Tests(branch)
run-name: 'Test branch commit "${{ github.event.head_commit.message }}"'

on:
push:
branches-ignore: [ "main" ]
paths-ignore: ['README.md']
pull_request:
types: [opened, synchronize, reopened]
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
# on:
# push:
# branches-ignore: [ "main" ]
# paths-ignore: ['README.md']
# pull_request:
# types: [opened, synchronize, reopened]
# pull_request_target:
# types: [opened, synchronize, reopened, ready_for_review]
on:
workflow_dispatch:


jobs:
branch_ci:
Expand Down
Loading