test nb pod op #63
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: | |
- integration-tests | |
jobs: | |
# unit-tests: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/setup-python@v4 | |
# with: | |
# python-version: 3.11 | |
# - run: pip3 install poetry | |
# - run: poetry install --with test | |
# - run: poetry run pytest | |
integration-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install python dependencies | |
run: | | |
pip3 install apache-airflow | |
pip3 install . | |
- name: Start kind cluster | |
uses: helm/[email protected] | |
- name: Verify cluster up | |
run: | | |
kubectl cluster-info | |
kubectl get nodes | |
- name: Setup cluster for tests | |
run: | | |
kubectl create sa airflow | |
kubectl create secret generic github-app-secret --from-literal=test=test | |
kubectl create cm ca-bundle-pem --from-literal=test=test | |
- name: Setup Airflow | |
run: | | |
airflow db reset -y | |
airflow variables set quarto_token ${{ secrets.QUARTO_TOKEN }} | |
echo "AIRFLOW__CORE__DAGS_FOLDER=$(pwd)/dags" >> $GITHUB_ENV | |
- name: Run tests | |
env: | |
AIRFLOW_CONN_SQLITE_DEFAULT: sqlite://?mode=ro | |
KNADA_AIRFLOW_OPERATOR_IMAGE: ghcr.io/navikt/knada-images/dataverk-airflow:2023-10-18-d78589a | |
KNADA_TEAM_SECRET: secret | |
NAMESPACE: default | |
K8S_IMAGE_PULL_SECRETS: ghcr-creds | |
CLONE_REPO_IMAGE: ghcr.io/navikt/knada-git-sync/git-sync:2023-10-19-301ca18 | |
MARKEDSPLASSEN_HOST: data.ekstern.dev.nav.no | |
INTEGRATION_TEST: "true" | |
run: | | |
airflow dags list | |
airflow dags test DataverkAirflow |