-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to workflows for nightly run, validation, deploy.
- Loading branch information
1 parent
e13689c
commit 0e71cf4
Showing
4 changed files
with
83 additions
and
21 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
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,32 @@ | ||
name: Nightly Test | ||
|
||
on: | ||
schedule: | ||
- cron: "0 9 * * *" | ||
|
||
jobs: | ||
test: | ||
name: Nightly Test | ||
|
||
env: | ||
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }} | ||
NGROK_HTTP_EDGE: ${{ secrets.NGROK_HTTP_EDGE }} | ||
NGROK_TCP_EDGE: ${{ secrets.NGROK_TCP_EDGE }} | ||
NGROK_API_KEY: ${{ secrets.NGROK_API_KEY }} | ||
NGROK_HTTP_EDGE_ENDPOINT: ${{ secrets.NGROK_HTTP_EDGE_ENDPOINT }} | ||
NGROK_TCP_EDGE_ENDPOINT: ${{ secrets.NGROK_TCP_EDGE_ENDPOINT }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.12 | ||
- name: Run tests | ||
uses: nick-fields/retry@v3 | ||
with: | ||
retry_wait_seconds: 30 | ||
max_attempts: 3 | ||
command: make install test |
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,39 @@ | ||
name: Validate | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
validate: | ||
name: Validate | ||
|
||
env: | ||
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }} | ||
NGROK_HTTP_EDGE: ${{ secrets.NGROK_HTTP_EDGE }} | ||
NGROK_TCP_EDGE: ${{ secrets.NGROK_TCP_EDGE }} | ||
NGROK_API_KEY: ${{ secrets.NGROK_API_KEY }} | ||
NGROK_HTTP_EDGE_ENDPOINT: ${{ secrets.NGROK_HTTP_EDGE_ENDPOINT }} | ||
NGROK_TCP_EDGE_ENDPOINT: ${{ secrets.NGROK_TCP_EDGE_ENDPOINT }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.12 | ||
- name: Build test coverage | ||
run: make install test | ||
- name: Build docs | ||
run: make docs | ||
- name: Check code | ||
run: make check | ||
- name: Validate package | ||
run: make local | ||
- name: Test downstream | ||
run: make test-downstream | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
directory: ./build/coverage |