From 61c9d5913842c8ee82600b6fd5b6205d108f2b7a Mon Sep 17 00:00:00 2001 From: Jitendra Gundaniya Date: Mon, 25 Mar 2024 20:03:09 +0000 Subject: [PATCH] Daily updated --- .github/workflows/build_backend.yml | 150 ++++++++++++++-------------- .github/workflows/daily.yml | 20 ++-- 2 files changed, 83 insertions(+), 87 deletions(-) diff --git a/.github/workflows/build_backend.yml b/.github/workflows/build_backend.yml index 80899f1af0..006b3125e1 100644 --- a/.github/workflows/build_backend.yml +++ b/.github/workflows/build_backend.yml @@ -1,4 +1,4 @@ -name: build_backend +name: build backend on: push: paths: @@ -36,77 +36,77 @@ jobs: - uses: "./.github/actions/npm_build" - name: Run all end to end tests run: make e2e-tests - # win_e2e_tests: - # if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/demo' - # runs-on: windows-latest - # strategy: - # matrix: - # python_version: - # - '3.9' - # - '3.10' - # - '3.11' - # steps: - # - uses: actions/checkout@v4.1.0 - # - uses: "./.github/actions/win_setup" - # with: - # python_version: "${{ matrix.python_version }}" - # - name: Run all end to end tests on Windows - # run: | - # conda activate kedro-viz - # make e2e-tests - # unit_tests: - # runs-on: ubuntu-latest - # container: - # image: cimg/python:${{ matrix.python_version }}-node - # strategy: - # matrix: - # python_version: - # - '3.9' - # - '3.10' - # - '3.11' - # steps: - # - uses: actions/checkout@v4.1.0 - # - uses: "./.github/actions/setup_python_env" - # - uses: "./.github/actions/install_node_dependencies" - # - uses: "./.github/actions/npm_build" - # - name: Run Python tests - # run: make pytest - # win_unit_tests: - # if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/demo' - # runs-on: windows-latest - # strategy: - # matrix: - # python_version: - # - '3.9' - # - '3.10' - # - '3.11' - # steps: - # - uses: actions/checkout@v4.1.0 - # - uses: "./.github/actions/win_setup" - # with: - # python_version: "${{ matrix.python_version }}" - # - name: Run Python tests on Windows - # run: | - # conda activate kedro-viz - # make pytest - # lint: - # runs-on: ubuntu-latest - # container: - # image: cimg/python:${{ matrix.python_version }}-node - # strategy: - # matrix: - # python_version: - # - '3.9' - # - '3.10' - # - '3.11' - # steps: - # - uses: actions/checkout@v4.1.0 - # - uses: "./.github/actions/setup_python_env" - # - name: Run secret scan - # run: make secret-scan - # - name: Run security scan - # run: make security-scan - # - name: Verify GraphQL schema is up to date - # run: make schema-check - # - name: Run Python formatters and linters - # run: make format-check lint-check + win_e2e_tests: + if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/demo' + runs-on: windows-latest + strategy: + matrix: + python_version: + - '3.9' + - '3.10' + - '3.11' + steps: + - uses: actions/checkout@v4.1.0 + - uses: "./.github/actions/win_setup" + with: + python_version: "${{ matrix.python_version }}" + - name: Run all end to end tests on Windows + run: | + conda activate kedro-viz + make e2e-tests + unit_tests: + runs-on: ubuntu-latest + container: + image: cimg/python:${{ matrix.python_version }}-node + strategy: + matrix: + python_version: + - '3.9' + - '3.10' + - '3.11' + steps: + - uses: actions/checkout@v4.1.0 + - uses: "./.github/actions/setup_python_env" + - uses: "./.github/actions/install_node_dependencies" + - uses: "./.github/actions/npm_build" + - name: Run Python tests + run: make pytest + win_unit_tests: + if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/demo' + runs-on: windows-latest + strategy: + matrix: + python_version: + - '3.9' + - '3.10' + - '3.11' + steps: + - uses: actions/checkout@v4.1.0 + - uses: "./.github/actions/win_setup" + with: + python_version: "${{ matrix.python_version }}" + - name: Run Python tests on Windows + run: | + conda activate kedro-viz + make pytest + lint: + runs-on: ubuntu-latest + container: + image: cimg/python:${{ matrix.python_version }}-node + strategy: + matrix: + python_version: + - '3.9' + - '3.10' + - '3.11' + steps: + - uses: actions/checkout@v4.1.0 + - uses: "./.github/actions/setup_python_env" + - name: Run secret scan + run: make secret-scan + - name: Run security scan + run: make security-scan + - name: Verify GraphQL schema is up to date + run: make schema-check + - name: Run Python formatters and linters + run: make format-check lint-check diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 0e8620121b..5fb7dc1b16 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -2,15 +2,7 @@ name: daily on: schedule: - cron: 0 1 * * * -# # 'filters' was not transformed because there is no suitable equivalent in GitHub Actions workflow_dispatch: - inputs: - backend_change: - required: true - ci_change: - required: true - frontend_change: - required: true env: AWS_REGION: xxxxst-2 CACHE_VERSION: xxxx @@ -32,8 +24,10 @@ jobs: - '3.10' - '3.11' steps: -# # This item has no matching transformer -# - setup: + - uses: actions/checkout@v4.1.0 + - uses: "./.github/actions/setup_python_env" + - uses: "./.github/actions/install_node_dependencies" + - uses: "./.github/actions/npm_build" - name: Run all end to end tests run: make e2e-tests win_e2e_tests: @@ -62,8 +56,10 @@ jobs: - '3.10' - '3.11' steps: -# # This item has no matching transformer -# - setup: + - uses: actions/checkout@v4.1.0 + - uses: "./.github/actions/setup_python_env" + - uses: "./.github/actions/install_node_dependencies" + - uses: "./.github/actions/npm_build" - name: Run Python tests run: make pytest win_unit_tests: