-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dynamically set
API_SERVER_URL
(#708)
- Loading branch information
Showing
13 changed files
with
293 additions
and
7 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
name: Tests with level "local" on Den Dev | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
API_SERVER_URL: https://api-dev.run.house | ||
|
||
jobs: | ||
# TODO: THESE ARE ONLY SEPARATE JOBS BECAUSE THERE ARE | ||
# DEVELOPMENT INCONSISTENCIES WHEN RUNNING ALL THE LOCAL | ||
# TESTS TOGETHER. | ||
# server-tests-logged-out-level-local: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Check out repository code | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Setup Runhouse | ||
# uses: ./.github/workflows/setup_runhouse | ||
|
||
# - name: pytest -v --level local tests/test_servers/ | ||
# env: | ||
# TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
# TEST_USERNAME: ${{ secrets.TEST_USERNAME }} | ||
# run: pytest -v --level local tests/test_servers/ | ||
|
||
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 | ||
|
||
- name: Setup ~/.rh/config.yaml | ||
uses: ./.github/workflows/setup_rh_config | ||
with: | ||
username: ${{ secrets.CI_ACCOUNT_USERNAME }} | ||
token: ${{ secrets.CI_ACCOUNT_TOKEN }} | ||
api_server_url: ${{ env.API_SERVER_URL }} | ||
|
||
|
||
- name: pytest -v --level local tests/test_servers/ | ||
env: | ||
TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
TEST_USERNAME: ${{ secrets.TEST_USERNAME }} | ||
run: pytest -v --level local tests/test_servers/ --api-server-url $API_SERVER_URL | ||
timeout-minutes: 60 | ||
|
||
# most-tests-logged-out-level-local: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Check out repository code | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Setup Runhouse | ||
# uses: ./.github/workflows/setup_runhouse | ||
|
||
# - name: pytest -v --level local -k "not servertest and not secrettest" | ||
# env: | ||
# TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
# TEST_USERNAME: ${{ secrets.TEST_USERNAME }} | ||
# run: pytest -v --level local -k "not servertest and not secrettest" | ||
|
||
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 | ||
|
||
- name: Setup ~/.rh/config.yaml | ||
uses: ./.github/workflows/setup_rh_config | ||
with: | ||
username: ${{ secrets.CI_ACCOUNT_USERNAME }} | ||
token: ${{ secrets.CI_ACCOUNT_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 envtest" | ||
env: | ||
TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
TEST_USERNAME: ${{ secrets.TEST_USERNAME }} | ||
run: pytest -v --level local -k "not servertest and not secrettest and not moduletest and not functiontest and not envtest" --api-server-url $API_SERVER_URL | ||
timeout-minutes: 60 | ||
|
||
# secret-tests-logged-out-level-local: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Check out repository code | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Setup Runhouse | ||
# uses: ./.github/workflows/setup_runhouse | ||
|
||
# - name: pytest -v --level local -k "secrettest" | ||
# env: | ||
# TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
# TEST_USERNAME: ${{ secrets.TEST_USERNAME }} | ||
# run: pytest -v --level local -k "secrettest" | ||
|
||
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 | ||
|
||
- name: Setup ~/.rh/config.yaml | ||
uses: ./.github/workflows/setup_rh_config | ||
with: | ||
username: ${{ secrets.CI_ACCOUNT_USERNAME }} | ||
token: ${{ secrets.CI_ACCOUNT_TOKEN }} | ||
api_server_url: ${{ env.API_SERVER_URL }} | ||
|
||
- name: pytest -v --level local -k "secrettest" | ||
env: | ||
TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
TEST_USERNAME: ${{ secrets.TEST_USERNAME }} | ||
run: pytest -v --level local -k "secrettest" --api-server-url $API_SERVER_URL | ||
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 | ||
|
||
- name: Setup ~/.rh/config.yaml | ||
uses: ./.github/workflows/setup_rh_config | ||
with: | ||
username: ${{ secrets.CI_ACCOUNT_USERNAME }} | ||
token: ${{ secrets.CI_ACCOUNT_TOKEN }} | ||
api_server_url: ${{ env.API_SERVER_URL }} | ||
|
||
- name: pytest -v --level local -k "moduletest" | ||
env: | ||
TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
TEST_USERNAME: ${{ secrets.TEST_USERNAME }} | ||
run: pytest -v --level local -k "moduletest" --api-server-url $API_SERVER_URL | ||
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 | ||
|
||
- name: Setup ~/.rh/config.yaml | ||
uses: ./.github/workflows/setup_rh_config | ||
with: | ||
username: ${{ secrets.CI_ACCOUNT_USERNAME }} | ||
token: ${{ secrets.CI_ACCOUNT_TOKEN }} | ||
api_server_url: ${{ env.API_SERVER_URL }} | ||
|
||
- name: pytest -v --level local -k "functiontest" | ||
env: | ||
TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
TEST_USERNAME: ${{ secrets.TEST_USERNAME }} | ||
run: pytest -v --level local -k "functiontest" --api-server-url $API_SERVER_URL | ||
timeout-minutes: 60 | ||
|
||
env-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 | ||
|
||
- name: Setup ~/.rh/config.yaml | ||
uses: ./.github/workflows/setup_rh_config | ||
with: | ||
username: ${{ secrets.CI_ACCOUNT_USERNAME }} | ||
token: ${{ secrets.CI_ACCOUNT_TOKEN }} | ||
api_server_url: ${{ env.API_SERVER_URL }} | ||
|
||
- name: pytest -v --level local -k "envtest" | ||
env: | ||
TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | ||
TEST_USERNAME: ${{ secrets.TEST_USERNAME }} | ||
run: pytest -v --level local -k "envtest" --api-server-url $API_SERVER_URL | ||
timeout-minutes: 60 |
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
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
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
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
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
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
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
Oops, something went wrong.