-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
name: "Integration Tests" | ||
name: "Deploy on Digital Ocean" | ||
|
||
on: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 * * MON" | ||
workflow_dispatch: | ||
# DISABLE push before merge | ||
push: | ||
|
||
jobs: | ||
|
@@ -21,13 +24,11 @@ jobs: | |
run: | | ||
pip install .[dev] | ||
conda install --quiet --yes conda-build | ||
- name: Debugging with tmate | ||
uses: mxschmitt/[email protected] | ||
- name: Integration Tests | ||
run: | | ||
pytest --version | ||
pytest tests_integration/ -vvv | ||
pytest tests_integration/ -vvv -s | ||
env: | ||
NEBARI_K8S_VERSION: 1.24.13-do.0 | ||
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }} | ||
|
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,26 @@ | ||
# Integration Testing via Pytest | ||
|
||
These tests are designed to test things on Nebari deployed | ||
on cloud. At the moment it only deploys on DigitalOcean. | ||
|
||
You need the following environment variables to run these. | ||
|
||
```bash | ||
DIGITALOCEAN_TOKEN | ||
NEBARI_K8S_VERSION | ||
SPACES_ACCESS_KEY_ID | ||
SPACES_SECRET_ACCESS_KEY | ||
CLOUDFLARE_TOKEN | ||
``` | ||
|
||
For instructions on how to get these variables check the documentation | ||
for DigitalOcean deployment. | ||
|
||
Running Tests: | ||
|
||
```bash | ||
pytest tests_integration -vvv -s | ||
``` | ||
|
||
This would deploy on digitalocean, run tests on the deployment | ||
and then teardown the cluster. |
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