-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from kedro-org/noklam/create-ci-to-install-dep…
…endencies-42 Noklam/create ci to install dependencies 42
- Loading branch information
Showing
5 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Install development dependencies | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
type: string | ||
python-version: | ||
type: string | ||
branch: | ||
type: string | ||
default: '' | ||
jobs: | ||
install: | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
# - name: Add MSBuild to PATH | ||
# if: inputs.os == 'windows-latest' | ||
# uses: microsoft/setup-msbuild@v2 | ||
- name: Install dependencies | ||
run: | | ||
make dev-install | ||
- name: pip freeze | ||
run: uv pip freeze --system | ||
- name: Run unit tests | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Run nightly job on vscode-kedro | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Run every day at midnight (UTC time) | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
nightly-main: | ||
uses: ./.github/workflows/installation.yml | ||
with: | ||
branch: main | ||
|
||
|
||
|
||
notify-main: | ||
permissions: | ||
issues: write | ||
name: Notify failed build for nightly-main | ||
needs: nightly-main | ||
if: ${{ !success() }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: jayqi/failed-build-issue-action@v1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
label-name: "main nightly build" | ||
title-template: "ci: Nightly build failure on `main`" | ||
body-template: | | ||
GitHub Actions workflow [{{workflow}} #{{runNumber}}](https://github.com/{{repo.owner}}/{{repo.repo}}/actions/runs/{{runId}}) failed. | ||
create-label: true | ||
always-create-new-issue: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters