forked from globus/globus-compute
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request globus#624 from sirosen/fix-dependency-specification
Fix CI and the way dependencies are specified
- Loading branch information
Showing
13 changed files
with
254 additions
and
196 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,57 @@ | ||
name: daily | ||
on: | ||
# build every weekday at 4:00 AM UTC | ||
schedule: | ||
- cron: '0 4 * * 1-5' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
safety-check-sdk: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
- uses: actions/setup-python@v1 | ||
- name: install requirements | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install './funcx_sdk' | ||
python -m pip install safety | ||
- name: run safety check | ||
run: safety check | ||
|
||
safety-check-endpoint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
- uses: actions/setup-python@v1 | ||
- name: install requirements | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install './funcx_endpoint' | ||
python -m pip install safety | ||
- name: run safety check | ||
run: safety check | ||
|
||
notify: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- safety-check-sdk | ||
- safety-check-endpoint | ||
if: failure() | ||
steps: | ||
# FIXME: make this send to a listhost or Slack | ||
- name: Send mail | ||
uses: dawidd6/action-send-mail@v3 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
username: ${{secrets.MAIL_USERNAME}} | ||
password: ${{secrets.MAIL_PASSWORD}} | ||
subject: ${{ github.repository }} - Daily Check ${{ job.status }} | ||
to: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected] | ||
from: funcX Tests # <[email protected]> | ||
body: The daily ${{ github.repository }} workflow failed! |
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
description: "manual test" | ||
|
||
jobs: | ||
tutorial_test: | ||
smoke-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -22,25 +22,26 @@ jobs: | |
- name: Install dependencies for funcx-sdk and test requirements | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install ./funcx_sdk | ||
python -m pip install -r funcx_sdk/test-requirements.txt | ||
- name: Check for vulnerabilities in libraries | ||
run: | | ||
pip install safety | ||
safety check | ||
python -m pip install './funcx_sdk[test]' | ||
python -m pip install safety | ||
- name: Run smoke tests to check liveness of hosted services | ||
run: | | ||
pytest -v funcx_endpoint/tests/smoke_tests --api-client-id ${{ secrets.API_CLIENT_ID }} --api-client-secret ${{ secrets.API_CLIENT_SECRET }} | ||
# FIXME: make this send to a listhost or Slack | ||
- name: Send mail | ||
if: ${{ failure() }} | ||
uses: dawidd6/action-send-mail@v3 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
username: ${{secrets.MAIL_USERNAME}} | ||
password: ${{secrets.MAIL_PASSWORD}} | ||
subject: ${{ github.repository }} - Tutorial test ${{ job.status }} | ||
to: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected] | ||
from: funcX Tests # <[email protected]> | ||
body: The ${{ github.repository }} test ${{ github.workflow }} exited with status - ${{ job.status }}! | ||
notify: | ||
runs-on: ubuntu-latest | ||
needs: [smoke-test] | ||
if: failure() | ||
steps: | ||
# FIXME: make this send to a listhost or Slack | ||
- name: Send mail | ||
uses: dawidd6/action-send-mail@v3 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
username: ${{secrets.MAIL_USERNAME}} | ||
password: ${{secrets.MAIL_PASSWORD}} | ||
subject: ${{ github.repository }} - Tutorial test ${{ job.status }} | ||
to: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected] | ||
from: funcX Tests # <[email protected]> | ||
body: The hourly ${{ github.repository }} workflow failed! |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
-r ../funcx_sdk/requirements.txt | ||
-r ../funcx_sdk/test-requirements.txt | ||
../funcx_sdk | ||
nbsphinx | ||
sphinx_rtd_theme |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.