-
Notifications
You must be signed in to change notification settings - Fork 141
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 #113 from mir-group/develop
v0.5.0 & v0.4.0
- Loading branch information
Showing
127 changed files
with
6,255 additions
and
2,319 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,48 @@ | ||
name: Check Syntax and Run Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.9] | ||
torch-version: [1.8.0, 1.9.0] | ||
|
||
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 flake8 | ||
run: | | ||
pip install flake8 | ||
- name: Lint with flake8 | ||
run: | | ||
flake8 . --count --show-source --statistics | ||
- name: Install dependencies | ||
env: | ||
TORCH: "${{ matrix.torch-version }}" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install torch==${TORCH} -f https://download.pytorch.org/whl/cpu/torch_stable.html | ||
pip install . | ||
- name: Install pytest | ||
run: | | ||
pip install pytest | ||
pip install pytest-xdist[psutil] | ||
- name: Test with pytest | ||
run: | | ||
# See https://github.com/pytest-dev/pytest/issues/1075 | ||
PYTHONHASHSEED=0 pytest -n auto --ignore=docs/ . |
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: Check Syntax and Run Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.9] | ||
torch-version: [1.9.0] | ||
|
||
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 flake8 | ||
run: | | ||
pip install flake8 | ||
- name: Lint with flake8 | ||
run: | | ||
flake8 . --count --show-source --statistics | ||
- name: Install dependencies | ||
env: | ||
TORCH: "${{ matrix.torch-version }}" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install torch==${TORCH} -f https://download.pytorch.org/whl/cpu/torch_stable.html | ||
pip install . | ||
- name: Install pytest | ||
run: | | ||
pip install pytest | ||
pip install pytest-xdist[psutil] | ||
- name: Test with pytest | ||
run: | | ||
# See https://github.com/pytest-dev/pytest/issues/1075 | ||
PYTHONHASHSEED=0 pytest -n auto --ignore=docs/ . |
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.