Skip to content

Commit

Permalink
Fix cicd steps
Browse files Browse the repository at this point in the history
Signed-off-by: Elliot Gunton <[email protected]>
  • Loading branch information
elliotgunton committed Dec 5, 2024
1 parent 189f14b commit 52f85a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install poetry
run: pipx install poetry

- name: setup python ${{ matrix.python-version }}
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
- name: Install poetry
run: pipx install poetry

- name: setup python ${{ matrix.python-version }}
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
- name: Install poetry
run: pipx install poetry

- name: setup python 3.9
- name: set up python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
Expand All @@ -118,17 +118,14 @@ jobs:
- name: Install dependencies
run: poetry install --all-extras

- name: setup k3d cluster
run: make install-k3d

- name: setup and run argo
run: make run-argo
- name: set up cluster
run: make install-k3d set-up-cluster set-up-artifacts set-up-argo

- name: run workflow tests
run: make test-on-cluster

- name: stop argo cluster
run: make stop-argo
run: make stop-cluster

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ set-up-cluster: ## Create the cluster and argo namespace
k3d kubeconfig merge test-cluster --kubeconfig-switch-context
kubectl get namespace argo || kubectl create namespace argo

.PHONY: run-argo
run-argo: ## Start the argo service
.PHONY: set-up-argo
set-up-argo: ## Start the argo service
kubectl apply -n argo -f https://github.com/argoproj/argo-workflows/releases/download/v$(ARGO_WORKFLOWS_VERSION)/install.yaml
kubectl patch deployment argo-server --namespace argo --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/args", "value": ["server", "--auth-mode=server"]}]'
kubectl create rolebinding default-admin --clusterrole=admin --serviceaccount=argo:default --namespace=argo
Expand All @@ -182,8 +182,8 @@ set-up-artifacts: ## Adds minio for running examples with artifact storage
kubectl apply -n argo -f https://raw.githubusercontent.com/argoproj-labs/training-material/main/config/argo-workflows/workflows-controller-configmap.yaml
kubectl apply -n argo -f tests/submissions/roles.yaml

.PHONY: stop-argo
stop-argo: ## Stop the argo server
.PHONY: stop-cluster
stop-cluster: ## Stop the cluster
k3d cluster stop test-cluster

.PHONY: test-on-cluster
Expand Down

0 comments on commit 52f85a1

Please sign in to comment.