-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GHA-based continuous integration
- Loading branch information
Showing
7 changed files
with
390 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: daily-testing | ||
|
||
on: | ||
push: | ||
branches: | ||
- gha-testing | ||
- master | ||
schedule: | ||
# daily testing to occur at 7:30 CST every Monday | ||
- cron: '30 13 * * 1' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [''] | ||
keras-version: [''] | ||
tf-version: [''] | ||
include: | ||
- python-version: 3.9 | ||
keras-version: TF | ||
tf-version: 2.5 | ||
label: latest-tf | ||
|
||
- python-verison: 3.9 | ||
keras-version: SKLEARN | ||
label: sklearn | ||
|
||
- python-version: 3.9 | ||
keras-version: 2.1.3 | ||
tf-version: 2.5 | ||
label: keras-2.1.3 | ||
|
||
- python-version: 3.9 | ||
keras-version: 2.2.3 | ||
tf-version: 2.5 | ||
label: keras-2.2.3 | ||
|
||
|
||
|
||
env: | ||
CLIENT_ID: ${{ secrets.CLIENT_ID }} | ||
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | ||
SCIKIT_LEARN_VERSION: '0.19.1' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Globus auth | ||
run: 'echo "$GLOBUS_CONFIG" > ~/.globus-native-apps.cfg' | ||
shell: bash | ||
env: | ||
GLOBUS_CONFIG: "${{ secrets.GLOBUS_CONFIG }}" | ||
|
||
- name: Run Installation Script | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e . | ||
pip install flake8 pytest | ||
pip install -r test-requirements.txt | ||
if ${{ matrix.keras-version == '2.2.3' }}; then | ||
pip install tensorflow==${{matrix.tf-version}} | ||
pip install keras==${{matrix.keras-version}} | ||
fi | ||
if ${{ matrix.keras-version == '2.1.3' }}; then | ||
pip install tensorflow==${{matrix.tf-version}} | ||
pip install keras==${{matrix.keras-version}} | ||
fi | ||
if ${{matrix.keras-version == 'TF'}}; then | ||
pip install tensorflow==${{matrix.tf-version}} | ||
fi | ||
if ${{matrix.keras-version == 'SKLEARN' }}; then | ||
pip install scikit-learn | ||
fi | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
pip list | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest | ||
run: | | ||
# run all testing documents, except the local tests | ||
pytest ./dlhub_sdk -k "not test_dlhub_client" |
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 |
---|---|---|
|
@@ -474,3 +474,5 @@ def clear_funcx_cache(self, servable=None): | |
self.fx_cache = {} | ||
|
||
return self.fx_cache | ||
|
||
|
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.