Skip to content

Adding tests for python version #11000

Adding tests for python version

Adding tests for python version #11000

Workflow file for this run

name: Tests with level "local"
on:
push:
branches: [ main ]
pull_request:
env:
API_SERVER_URL: https://api.run.house
RH_LOG_LEVEL: DEBUG
jobs:
# THESE ARE ONLY SEPARATE JOBS BECAUSE THERE ARE
# DEVELOPMENT INCONSISTENCIES WHEN RUNNING ALL THE LOCAL
# TESTS TOGETHER.
# PYDEVD_DISABLE_FILE_VALIDATION is an env variable which disables the python debugger on docker cluster. We don't
# actually need a python debugger live on docker cluster. Having it causing some unnecessary output in
# cluster.run_python()
server-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
with:
den_tester_ssh_private_key: ${{ secrets.DEN_TESTER_SSH_PRIVATE_KEY }}
den_tester_ssh_public_key: ${{ secrets.DEN_TESTER_SSH_PUBLIC_KEY }}
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local tests/test_servers/
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
run: pytest -v --level local tests/test_servers/
timeout-minutes: 60
most-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
with:
den_tester_ssh_private_key: ${{ secrets.DEN_TESTER_SSH_PRIVATE_KEY }}
den_tester_ssh_public_key: ${{ secrets.DEN_TESTER_SSH_PUBLIC_KEY }}
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local -k "not servertest and not secrettest and not moduletest and not functiontest and not clustertest"
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
ORG_MEMBER_TOKEN: ${{ secrets.ORG_MEMBER_PROD_TOKEN }}
ORG_MEMBER_USERNAME: ${{ secrets.ORG_MEMBER_USERNAME }}
PYDEVD_DISABLE_FILE_VALIDATION: 1
run: pytest -v --level local -k "not servertest and not secrettest and not moduletest and not functiontest and not clustertest"
timeout-minutes: 60
secret-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
with:
den_tester_ssh_private_key: ${{ secrets.DEN_TESTER_SSH_PRIVATE_KEY }}
den_tester_ssh_public_key: ${{ secrets.DEN_TESTER_SSH_PUBLIC_KEY }}
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local -k "secrettest"
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
ORG_MEMBER_TOKEN: ${{ secrets.ORG_MEMBER_PROD_TOKEN }}
ORG_MEMBER_USERNAME: ${{ secrets.ORG_MEMBER_USERNAME }}
run: pytest -v --level local -k "secrettest"
timeout-minutes: 60
module-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
with:
den_tester_ssh_private_key: ${{ secrets.DEN_TESTER_SSH_PRIVATE_KEY }}
den_tester_ssh_public_key: ${{ secrets.DEN_TESTER_SSH_PUBLIC_KEY }}
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local -k "moduletest"
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
ORG_MEMBER_TOKEN: ${{ secrets.ORG_MEMBER_PROD_TOKEN }}
ORG_MEMBER_USERNAME: ${{ secrets.ORG_MEMBER_USERNAME }}
PYDEVD_DISABLE_FILE_VALIDATION: 1
run: pytest -v --level local -k "moduletest"
timeout-minutes: 60
function-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
with:
den_tester_ssh_private_key: ${{ secrets.DEN_TESTER_SSH_PRIVATE_KEY }}
den_tester_ssh_public_key: ${{ secrets.DEN_TESTER_SSH_PUBLIC_KEY }}
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local -k "functiontest"
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
ORG_MEMBER_TOKEN: ${{ secrets.ORG_MEMBER_PROD_TOKEN }}
ORG_MEMBER_USERNAME: ${{ secrets.ORG_MEMBER_USERNAME }}
run: pytest -v --level local -k "functiontest"
timeout-minutes: 60
cluster-tests-logged-in-level-local:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Runhouse
uses: ./.github/workflows/setup_runhouse
with:
den_tester_ssh_private_key: ${{ secrets.DEN_TESTER_SSH_PRIVATE_KEY }}
den_tester_ssh_public_key: ${{ secrets.DEN_TESTER_SSH_PUBLIC_KEY }}
- name: Setup ~/.rh/config.yaml
uses: ./.github/workflows/setup_rh_config
with:
username: ${{ secrets.DEN_TESTER_USERNAME }}
token: ${{ secrets.DEN_TESTER_PROD_TOKEN }}
api_server_url: ${{ env.API_SERVER_URL }}
- name: pytest -v --level local -k "clustertest"
env:
KITCHEN_TESTER_TOKEN: ${{ secrets.KITCHEN_TESTER_PROD_TOKEN }}
KITCHEN_TESTER_USERNAME: ${{ secrets.KITCHEN_TESTER_USERNAME }}
ORG_MEMBER_TOKEN: ${{ secrets.ORG_MEMBER_PROD_TOKEN }}
ORG_MEMBER_USERNAME: ${{ secrets.ORG_MEMBER_USERNAME }}
PYDEVD_DISABLE_FILE_VALIDATION: 1
run: pytest -v --level local -k "clustertest"
timeout-minutes: 60