-
Notifications
You must be signed in to change notification settings - Fork 32
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 #1873 from PrincetonUniversity/devel
Devel
- Loading branch information
Showing
13 changed files
with
598 additions
and
149 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 |
---|---|---|
|
@@ -27,24 +27,24 @@ jobs: | |
if: startsWith(runner.os, 'Linux') | ||
with: | ||
path: ~/.cache/pip/wheels | ||
key: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels-${{ github.sha }} | ||
restore-keys: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels | ||
key: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels-v2-${{ github.sha }} | ||
restore-keys: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels-v2 | ||
|
||
- name: MacOS wheels cache | ||
uses: actions/[email protected] | ||
if: startsWith(runner.os, 'macOS') | ||
with: | ||
path: ~/Library/Caches/pip/wheels | ||
key: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels-${{ github.sha }} | ||
restore-keys: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels | ||
key: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels-v2-${{ github.sha }} | ||
restore-keys: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels-v2 | ||
|
||
- name: Windows wheels cache | ||
uses: actions/[email protected] | ||
if: startsWith(runner.os, 'Windows') | ||
with: | ||
path: ~\AppData\Local\pip\Cache\wheels | ||
key: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels-${{ github.sha }} | ||
restore-keys: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels | ||
key: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels-v2-${{ github.sha }} | ||
restore-keys: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ matrix.python-architecture }}-pip-wheels-v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
|
@@ -64,17 +64,19 @@ jobs: | |
run: choco install --no-progress -y graphviz --version=2.38.0.20190211 | ||
if: startsWith(runner.os, 'Windows') | ||
|
||
- name: Windows pytorch | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
pip install torch -f https://download.pytorch.org/whl/cpu/torch_stable.html | ||
if: startsWith(runner.os, 'Windows') && matrix.python-architecture != 'x86' | ||
- name: Shared dependencies | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
# explicitly install numpy (https://github.com/pypa/pip/issues/9239) | ||
python -m pip install --upgrade pip wheel $(grep numpy requirements.txt) | ||
pip install -e .[dev] | ||
- name: Windows pytorch | ||
shell: bash | ||
run: | | ||
pip install $(grep -o 'torch[0-9<=\.]*' requirements.txt) -f https://download.pytorch.org/whl/cpu/torch_stable.html | ||
if: startsWith(runner.os, 'Windows') && matrix.python-architecture != 'x86' | ||
|
||
- name: Cleanup old wheels | ||
shell: bash | ||
run: | | ||
|
@@ -101,7 +103,7 @@ jobs: | |
run: pytest --junit-xml=tests_out.xml --verbosity=0 -n auto --maxprocesses=2 | ||
|
||
- name: Upload test results | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.python-architecture }} | ||
path: tests_out.xml | ||
|
@@ -115,7 +117,7 @@ jobs: | |
if: contains(github.ref, 'tags') | ||
|
||
- name: Upload dist packages | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
name: dist-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.python-architecture }} | ||
path: dist/ | ||
|
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
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
Oops, something went wrong.