Skip to content

Commit

Permalink
Create .github/actions/run_e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-kbregula committed Aug 25, 2023
1 parent a5e8eea commit f2c1d56
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 10 deletions.
36 changes: 36 additions & 0 deletions .github/actions/run_e2e/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'Hello World'
description: 'Greet someone'
inputs:
python_version:
required: true
default: 'World'
streamlit_version:
required: true
default: '1.25.0'
streamlit_path:
default: 'World'

runs:
using: "composite"
steps:
- run: export
shell: bash

- run: echo "${GH_JSON}"
shell: bash
env:
GH_JSON: ${{ toJson(github) }}

- name: Build docker images
run: ./dev.py e2e-build-images "--streamlit-version=${{ env.STREAMLIT_VERSION }}" "--python-version=${{ env.PYTHON_VERSION }}"
shell: bash
env:
STREAMLIT_VERSION: ${{ inputs.streamlit_version }}
PYTHON_VERSION: ${{ inputs.python_version }}

- name: Run e2e tests
run: ./dev.py e2e-run-tests "--streamlit-version=${{ env.STREAMLIT_VERSION }}" "--python-version=${{ env.PYTHON_VERSION }}"
shell: bash
env:
STREAMLIT_VERSION: ${{ inputs.streamlit_version }}
PYTHON_VERSION: ${{ inputs.python_version }}
13 changes: 3 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,10 @@ jobs:
path: dist/*.whl
if-no-files-found: error

- name: Set up Docker Buildx
- name: Run E2E tests
if: matrix.node_version == '19.x'
uses: docker/setup-buildx-action@7703e82fbced3d0c9eec08dff4429c023a5fd9a9 # v2.9.1

- name: Build docker images
if: matrix.node_version == '19.x'
run: ./dev.py e2e-build-images "--streamlit-version=${{ env.STREAMLIT_VERSION }}" "--python-version=${{ env.PYTHON_VERSION }}"

- name: Run e2e tests
if: matrix.node_version == '19.x'
run: ./dev.py e2e-run-tests "--streamlit-version=${{ env.STREAMLIT_VERSION }}" "--python-version=${{ env.PYTHON_VERSION }}"
uses:
./.github/actions/run_e2e

build-cookiecutter:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f2c1d56

Please sign in to comment.