From 7b396c6be234c3b380bcdfbc01d33eb972bd7f2e Mon Sep 17 00:00:00 2001 From: Deepyaman Datta Date: Wed, 26 Apr 2023 16:18:56 -0400 Subject: [PATCH 1/2] ci: ensure plugin requirements get installed in CI --- .github/workflows/check-plugin.yml | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/check-plugin.yml b/.github/workflows/check-plugin.yml index 4a3cf8827..ef2ca754c 100644 --- a/.github/workflows/check-plugin.yml +++ b/.github/workflows/check-plugin.yml @@ -1,4 +1,4 @@ -name: Running tests and linter +name: Lint and test plugin on: workflow_call: @@ -37,13 +37,12 @@ jobs: path: ~\AppData\Local\pip\Cache key: ${{inputs.plugin}}-${{matrix.os}}-python-${{matrix.python-version}} restore-keys: ${{inputs.plugin}} - - name: Install Kedro - run: pip install git+https://github.com/kedro-org/kedro@main - - name: Install dependencies + - name: Install latest Kedro, the plugin and its dependencies run: | cd ${{ inputs.plugin }} + pip install git+https://github.com/kedro-org/kedro@main . pip install -r test_requirements.txt - - name: pip freeze + - name: Output installed packages in requirements format run: pip freeze - name: Run unit tests for Linux / all plugins if: matrix.os != 'windows-latest' @@ -80,17 +79,18 @@ jobs: path: ~/.cache/pip key: ${{inputs.plugin}}-${{matrix.os}}-python-${{matrix.python-version}} restore-keys: ${{inputs.plugin}} - - name: Install dependencies + - name: Install latest Kedro, the plugin and its dependencies run: | - cd ${{ inputs.plugin }} - pip install git+https://github.com/kedro-org/kedro@main - pip install -r test_requirements.txt - pip freeze + cd ${{ inputs.plugin }} + pip install git+https://github.com/kedro-org/kedro@main . + pip install -r test_requirements.txt + - name: Output installed packages in requirements format + run: pip freeze - name: Install pre-commit hooks run: | - cd ${{ inputs.plugin }} - pre-commit install --install-hooks - pre-commit install --hook-type pre-push + cd ${{ inputs.plugin }} + pre-commit install --install-hooks + pre-commit install --hook-type pre-push - name: Run linter run: make plugin=${{ inputs.plugin }} lint @@ -117,12 +117,12 @@ jobs: path: ~/.cache/pip key: ${{inputs.plugin}}-${{matrix.os}}-python-${{matrix.python-version}} restore-keys: ${{inputs.plugin}} - - name: Install dependencies + - name: Install latest Kedro, the plugin and its dependencies run: | cd ${{ inputs.plugin }} - pip install git+https://github.com/kedro-org/kedro@main + pip install git+https://github.com/kedro-org/kedro@main . pip install -r test_requirements.txt - - name: pip freeze + - name: Output installed packages in requirements format run: pip freeze - name: Run end to end tests # Custom shell to run kedro-docker e2e-tests because -it flag for `docker run` From bfe5d71699ee5117e6f3a7dcb7ed9666d3bb5330 Mon Sep 17 00:00:00 2001 From: Deepyaman Datta Date: Wed, 26 Apr 2023 16:20:08 -0400 Subject: [PATCH 2/2] Trigger CI --- kedro-docker/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kedro-docker/README.md b/kedro-docker/README.md index d6d13e748..36d6fa1a3 100644 --- a/kedro-docker/README.md +++ b/kedro-docker/README.md @@ -1,5 +1,7 @@ # Kedro-Docker +## Trigger CI + [![Python Version](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-blue.svg)](https://pypi.org/project/kedro-docker/) [![PyPI version](https://badge.fury.io/py/kedro-docker.svg)](https://pypi.org/project/kedro-docker/) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)