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

Add workflow to run conda-store user journey tests #2895

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion .github/workflows/test_local_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ env:
TEST_USERNAME: "test-user"
TEST_PASSWORD: "P@sswo3d"
NEBARI_IMAGE_TAG: "main"
PYTHON_VERSION: "3.11"

on:
pull_request:
Expand Down Expand Up @@ -70,7 +71,7 @@ jobs:
CONDA: /home/runnerx/miniconda3
with:
auto-update-conda: true
python-version: "3.11"
python-version: ${{ env.PYTHON_VERSION }}
miniconda-version: "latest"

- name: Install JQ
Expand Down Expand Up @@ -144,6 +145,44 @@ jobs:
path: |
./tests/tests_e2e/playwright/videos/

### CONDA-STORE TESTS
- name: "Checkout conda-store"
uses: actions/checkout@main
with:
fetch-depth: 0
repository: soapy1/conda-store
ref: fix-ssl-verify-test-check
path: conda-store

- name: "Set up conda-store conda env"
uses: conda-incubator/setup-miniconda@v3
env:
CONDA: /home/runnerx/miniconda3
with:
environment-file: conda-store/conda-store-server/environment-dev.yaml
miniforge-version: latest
auto-activate-base: false
activate-environment: conda-store-server-dev
python-version: ${{ env.PYTHON_VERSION }}
conda-remove-defaults: "true"

- name: Install conda-store dependencies
run: |
which python
# install conda-store-server
python -m pip install conda-store/conda-store-server

- name: Run conda-store-server user_journey tests
env:
NEBARI_CONFIG_PATH: ${{ steps.init.outputs.config }}
KEYCLOAK_USERNAME: ${{ env.TEST_USERNAME }}
KEYCLOAK_PASSWORD: ${{ env.TEST_PASSWORD }}
CONDA_STORE_BASE_URL: https://${{ steps.init.outputs.domain }}/conda-store
CONDA_STORE_TEST_VERIFY_SSL: 0
run: |
cd conda-store/conda-store-server
python -m pytest -m "user_journey"

### CLEANUP AFTER TESTS
- name: Cleanup nebari deployment
# Since this is not critical for most pull requests and takes more than half of the time
Expand Down