Skip to content

Commit

Permalink
Move conda-store tests to local integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soapy1 committed Jan 14, 2025
1 parent 805b75d commit 1cf59dd
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 144 deletions.
143 changes: 0 additions & 143 deletions .github/workflows/test_conda_store_integration.yaml

This file was deleted.

42 changes: 41 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,45 @@ jobs:
path: |
./tests/tests_e2e/playwright/videos/
### CONDA-STORE TESTS
- name: "Checkout conda-store"
uses: actions/checkout@main
with:
fetch-depth: 0
repository: conda-incubator/conda-store
ref: main
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
run: |
cd conda-store/conda-store-server
CONDA_STORE_TEST_VERIFY_SSL=0 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

0 comments on commit 1cf59dd

Please sign in to comment.