Force numpy version #465
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: Continuous Integration | |
on: [push, pull_request] | |
jobs: | |
flake8-lint: | |
runs-on: ubuntu-latest | |
name: Lint | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v2 | |
- name: Set up Python environment | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.11" | |
- name: flake8 Lint | |
uses: py-actions/flake8@v1 | |
with: | |
max-line-length: "140" | |
path: "flows" | |
validate-k8s: | |
runs-on: ubuntu-latest | |
name: Validate k8s manifests | |
env: | |
PREFECT_POOL: agent-pool | |
WEB3_INFURA_PROJECT_ID: WEB3_INFURA_PROJECT_ID | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v2 | |
- name: Setup Kustomize | |
uses: imranismail/setup-kustomize@v1 | |
with: | |
kustomize-version: "4.5.4" | |
- name: Write secrets file | |
run: $GITHUB_WORKSPACE/scripts/properties_from_env.sh PREFECT_API_KEY PREFECT_API_URL PREFECT_POOL WEB3_INFURA_PROJECT_ID > $GITHUB_WORKSPACE/agent/k8s/secret.properties | |
- name: Test staging kustomization | |
run: cp agent/k8s/kustomization_prod.yaml agent/k8s/kustomization.yaml | |
- name: Kustomize | |
run: kustomize build agent/k8s > /tmp/kustomized.yaml | |
- uses: azure/k8s-lint@v1 | |
with: | |
manifests: | | |
/tmp/kustomized.yaml | |
- name: Test production kustomization | |
run: cp agent/k8s/kustomization_prod.yaml agent/k8s/kustomization.yaml | |
- name: Kustomize | |
run: kustomize build agent/k8s > /tmp/kustomized.yaml | |
- uses: azure/k8s-lint@v1 | |
with: | |
manifests: | | |
/tmp/kustomized.yaml |