Add python requirements #27
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
name: Run every minute | |
on: | |
push: | |
branches: | |
- main | |
# schedule: | |
# - cron: '5 * * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN_PROD }} | |
KOSLI_ORG: meekrosoft | |
steps: | |
- uses: actions/checkout@v4 | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: '${{ secrets.gcp_credentials }}' | |
- id: 'get-credentials' | |
uses: 'google-github-actions/get-gke-credentials@v2' | |
with: | |
cluster_name: 'autopilot-cluster-1' | |
location: 'us-central1' | |
- id: 'install-kubectl' | |
uses: azure/setup-kubectl@v3 | |
# The KUBECONFIG env var is automatically exported and picked up by kubectl. | |
- id: 'get-pods' | |
run: 'kubectl get nodes' | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
# Semantic version range syntax or exact version of a Python version | |
python-version: '3.x' | |
# You can test your matrix by printing the current Python version | |
- name: Display Python version | |
run: | | |
python -c "import sys; print(sys.version)" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: setup kosli | |
uses: kosli-dev/setup-cli-action@v2 | |
with: | |
version: | |
2.8.8 | |
- name: Run a one-line script | |
run: | | |
echo "Hello, world!" | |
kosli version | |
echo "Kosli is installed" | |
python3 -m venv env | |
./all.sh | |