forked from canonical/data-science-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements the `dss initialize` command to initialize dss on a microk8s cluster. The command creates all resources needed for the basic dss experience (namespace, mlflow, etc)
- Loading branch information
Showing
19 changed files
with
880 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,55 @@ | ||
name: Tests | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: python3 -m pip install tox | ||
- name: Run linters | ||
run: tox -e lint | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: python3 -m pip install tox | ||
- name: Run linters | ||
run: tox -e lint | ||
|
||
unit-test: | ||
name: Unit tests | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: python -m pip install tox | ||
- name: Run tests | ||
run: tox -e unit | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: python -m pip install tox | ||
- name: Run tests | ||
run: tox -e unit | ||
|
||
integration: | ||
name: Integration tests | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Remove once https://github.com/canonical/bundle-kubeflow/issues/761 | ||
# is resolved and applied to all ROCKs repositories | ||
- name: Install python version from input | ||
run: | | ||
sudo add-apt-repository ppa:deadsnakes/ppa -y | ||
sudo apt update -y | ||
VERSION=3.10 | ||
sudo apt install python3.10 python3.10-distutils python3.10-venv -y | ||
wget https://bootstrap.pypa.io/get-pip.py | ||
python3.10 get-pip.py | ||
python3.10 -m pip install tox | ||
rm get-pip.py | ||
- uses: balchua/[email protected] | ||
with: | ||
channel: '1.28/stable' | ||
addons: '["hostpath-storage"]' | ||
|
||
- name: Install library | ||
run: sg microk8s -c "tox -vve integration" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ flake8-builtins | |
flake8-copyright | ||
pep8-naming | ||
pyproject-flake8 | ||
-r requirements-fmt.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pytest | ||
pytest-mock | ||
coverage[toml] | ||
-r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Click | ||
charmed_kubeflow_chisme | ||
lightkube | ||
pyyaml |
Oops, something went wrong.