Skip to content

update readme

update readme #60

name: Module 1 Advanced
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- 'module-1/**'
jobs:
k8s-test-deployment-action:
runs-on: ubuntu-latest
steps:
- name: Create k8s Kind Cluster
uses: helm/[email protected]
- name: Checkout
uses: actions/checkout@v4
- name: Deploy application
run: |
kubectl create -f module-1/k8s-resources/deployment-app-web.yaml
- name: Print pods
run: |
sleep 5 && kubectl get pod -A
- name: Print pods
run: |
kubectl wait --for=condition=available --timeout=180s deployment/deployments-app-web
- name: Print pods
run: |
sleep 5 && kubectl get pod -A
modal-lab-example-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install modal & setup creds
run: |
pip install modal --upgrade
modal token set --token-id ${{ secrets.MODAL_MODAL_LABS_TOKEN_ID }} --token-secret ${{ secrets.MODAL_MODAL_LABS_TOKEN_SECRET }}
- name: Run function
run: |
modal run ./module-1/modal_hello_world.py