-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:cleverhans-lab/cleverhans into to…
…rch/sparse_l1
- Loading branch information
Showing
593 changed files
with
77,885 additions
and
40,855 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,48 @@ | ||
name: CML Single GPU Test | ||
on: [push] | ||
jobs: | ||
run: | ||
runs-on: [self-hosted,cml,gpu] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cml_run | ||
env: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
nvidia-smi | ||
python -m pip install --upgrade pip | ||
pip install -e "." | ||
pip install -r requirements/requirements.txt | ||
pip install -r requirements/requirements-pytorch.txt | ||
pip install -r requirements/requirements-jax.txt | ||
pip install -r requirements/requirements-tf2.txt | ||
pip install -r requirements/requirements-dev.txt | ||
pip install -r requirements/requirements-gpu.txt | ||
find tutorials/future/jax/ -name '*.py' | while read f | ||
do | ||
python $f | ||
if [ $? -ne 0 ] | ||
then | ||
exit 1 | ||
fi | ||
done | ||
find tutorials/future/torch/ -name '*.py' | while read f | ||
do | ||
python $f | ||
if [ $? -ne 0 ] | ||
then | ||
exit 1 | ||
fi | ||
done | ||
find tutorials/future/tf2/ -name '*.py' | while read f | ||
do | ||
python $f | ||
if [ $? -ne 0 ] | ||
then | ||
exit 1 | ||
fi | ||
done |
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,47 @@ | ||
name: Style and type checks | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'cleverhans/**/*' | ||
- 'tutorials/**/*' | ||
|
||
pull_request: | ||
paths: | ||
- 'cleverhans/**/*' | ||
- 'tutorials/**/*' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e "." | ||
pip install -r requirements/requirements.txt | ||
pip install -r requirements/requirements-pytorch.txt | ||
pip install -r requirements/requirements-tf2.txt | ||
pip install -r requirements/requirements-jax.txt | ||
pip install -r requirements/requirements-dev.txt | ||
- name: Code reformat check | ||
run: | | ||
black --check cleverhans/ | ||
black --check tutorials/ | ||
# - name: flake8 linting check | ||
# run: | | ||
# flake8 cleverhans/ | ||
# flake8 tutorials/ | ||
# - name: Type check | ||
# run: | | ||
# mypy cleverhans/future/ |
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,28 @@ | ||
name: PyTorch Tests | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'cleverhans/torch/**/*' | ||
|
||
pull_request: | ||
paths: | ||
- 'cleverhans/torch/**/*' | ||
|
||
jobs: | ||
run: | ||
runs-on: [self-hosted,cml,gpu] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cml_run | ||
env: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e "." | ||
pip install -r requirements/requirements.txt | ||
pip install -r requirements/requirements-pytorch.txt | ||
pip install -r requirements/requirements-dev.txt | ||
pip install -r requirements/requirements-gpu.txt | ||
pytest cleverhans/torch/tests |
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,37 @@ | ||
name: JAX Tutorials | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'cleverhans/jax/**/*' | ||
- 'tutorials/jax/**/*' | ||
|
||
pull_request: | ||
paths: | ||
- 'cleverhans/jax/**/*' | ||
- 'tutorials/jax/**/*' | ||
|
||
jobs: | ||
run: | ||
runs-on: [self-hosted,cml,gpu] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cml_run | ||
env: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e "." | ||
pip install -r requirements/requirements.txt | ||
pip install -r requirements/requirements-jax.txt | ||
pip install -r requirements/requirements-dev.txt | ||
pip install -r requirements/requirements-gpu.txt | ||
find tutorials/jax/ -name '*.py' | while read f | ||
do | ||
python $f | ||
if [ $? -ne 0 ] | ||
then | ||
exit 1 | ||
fi | ||
done |
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,37 @@ | ||
name: PyTorch Tutorials | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'cleverhans/torch/**/*' | ||
- 'tutorials/torch/**/*' | ||
|
||
pull_request: | ||
paths: | ||
- 'cleverhans/torch/**/*' | ||
- 'tutorials/torch/**/*' | ||
|
||
jobs: | ||
run: | ||
runs-on: [self-hosted,cml,gpu] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cml_run | ||
env: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e "." | ||
pip install -r requirements/requirements.txt | ||
pip install -r requirements/requirements-pytorch.txt | ||
pip install -r requirements/requirements-dev.txt | ||
pip install -r requirements/requirements-gpu.txt | ||
find tutorials/torch/ -name '*.py' | while read f | ||
do | ||
python $f | ||
if [ $? -ne 0 ] | ||
then | ||
exit 1 | ||
fi | ||
done |
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,37 @@ | ||
name: TensorFlow 2 Tutorials | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'cleverhans/tf2/**/*' | ||
- 'tutorials/tf2/**/*' | ||
|
||
pull_request: | ||
paths: | ||
- 'cleverhans/tf2/**/*' | ||
- 'tutorials/tf2/**/*' | ||
|
||
jobs: | ||
run: | ||
runs-on: [self-hosted,cml,gpu] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: cml_run | ||
env: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e "." | ||
pip install -r requirements/requirements.txt | ||
pip install -r requirements/requirements-tf2.txt | ||
pip install -r requirements/requirements-dev.txt | ||
pip install -r requirements/requirements-gpu.txt | ||
find tutorials/tf2/ -name '*.py' | while read f | ||
do | ||
python $f | ||
if [ $? -ne 0 ] | ||
then | ||
exit 1 | ||
fi | ||
done |
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,5 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.