Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only gha changes #13

Merged
merged 7 commits into from
Apr 4, 2024
Merged

Only gha changes #13

merged 7 commits into from
Apr 4, 2024

Conversation

jitu5
Copy link
Owner

@jitu5 jitu5 commented Apr 3, 2024

Description

Development notes

QA notes

Checklist

  • Read the contributing guidelines
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added new entries to the RELEASE.md file
  • Added tests to cover my changes

@@ -0,0 +1,26 @@
name: install_node_dependencies

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need the actions in this folder anymore, right?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you are suggesting to move all the actions under .github/workflows/ or create a actions folder under .github/workflows/ like this .github/workflows/actions ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think setup_python_env is not required because actions/setup-python@v5 already sets up python, and the other two actions can just be steps in the workflow.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wait, it installs test requirements, you can rename the action instead.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I need to rename it correctly instead of setup python it should be "Install Python dependencies"

name: setup_python_env
description: Setup Python environment
runs:
  using: composite
  steps:
  - name: Install Python dependencies
    run: |-
      pip install git+https://github.com/kedro-org/kedro@main
      pip install -r package/test_requirements.txt -r demo-project/src/docker_requirements.txt -U
    shell: bash
  - name: Echo package versions
    run: |-
      python -V
      pip freeze
    shell: bash

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's upto you actually, I think having them as reusable actions is also not a bad setup!

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's upto you actually, I think having them as reusable actions is also not a bad setup!

It is about "Don't need the actions in this folder anymore, right?" ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just have these as steps in kedro but maybe it makes more sense to have them as actions and we can do smth like this in Kedro too. ^

name: Run all checks on Kedro-Viz
on:
workflow_call:
workflow_dispatch:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can actually just add -

schedule:
  - cron: 0 1 * * *

And get rid of daily.yml

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, like this

on:
  workflow_call:
  workflow_dispatch:
  schedule:
    - cron: 0 1 * * *  

So all-checks.yml will work as standalone and reusable workflow right?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, because daily.yml doesn't have any other thing except for calling this workflow!

path: ~\AppData\Local\pip\Cache
key: ${{inputs.os}}-python-${{inputs.python-version}}

- name: Setup Python environment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this required?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In CircleCI here https://github.com/jitu5/kedro-viz/blob/main/.circleci/continue_config.yml#L143

"Setup Python environment" is one of the step for e2e-tests.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the second step above already sets up python ^

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realised it actually installs kedro and other requirements, maybe rename the action.

@jitu5 jitu5 merged commit 7a10588 into tempDev Apr 4, 2024
26 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants