-
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 #5 from mmcdermott/dev
Release Candidate 0.1
- Loading branch information
Showing
21 changed files
with
488 additions
and
617 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 |
---|---|---|
|
@@ -23,5 +23,9 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install packages | ||
run: | | ||
pip install -e .[dev] | ||
- name: Run pre-commits | ||
uses: pre-commit/[email protected] |
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 |
---|---|---|
|
@@ -26,6 +26,10 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install packages | ||
run: | | ||
pip install -e .[dev] | ||
- name: Find modified files | ||
id: file_changes | ||
uses: trilom/[email protected] | ||
|
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 |
---|---|---|
|
@@ -28,19 +28,39 @@ jobs: | |
|
||
- name: Install packages | ||
run: | | ||
pip install -e .[tests,tqdmable,tensorable] | ||
pip install -e .[tests] | ||
#---------------------------------------------- | ||
# run test suite | ||
#---------------------------------------------- | ||
- name: Run tests | ||
- name: Run non-torch tests | ||
run: | | ||
pytest -v --doctest-modules --cov=src --junitxml=junit.xml -s --ignore=docs | ||
pytest -v --doctest-modules --cov=src --junitxml=junit.xml -s --ignore=docs --ignore=tests/test_torch.py | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Install torch as well | ||
run: | | ||
pip install torch | ||
- name: Run torch tests | ||
run: | | ||
pytest -v --cov=src --junitxml=junit.xml -s tests/test_torch.py | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
|
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,31 +1,4 @@ | ||
from .debuggable import DebuggableMixin | ||
from .multiprocessingable import MultiprocessingMixin | ||
from .saveable import SaveableMixin | ||
from .seedable import SeedableMixin | ||
from .swapcacheable import SwapcacheableMixin | ||
from .timeable import TimeableMixin | ||
|
||
__all__ = [ | ||
"DebuggableMixin", | ||
"MultiprocessingMixin", | ||
"SaveableMixin", | ||
"SeedableMixin", | ||
"SwapcacheableMixin", | ||
"TimeableMixin", | ||
] | ||
|
||
# Tensorable and Tqdmable rely on packages that may or may not be installed. | ||
|
||
try: | ||
from .tensorable import TensorableMixin # noqa | ||
|
||
__all__.append("TensorableMixin") | ||
except ImportError: | ||
pass | ||
|
||
try: | ||
from .tqdmable import TQDMableMixin # noqa | ||
|
||
__all__.append("TQDMableMixin") | ||
except ImportError: | ||
pass | ||
__all__ = ["SeedableMixin", "TimeableMixin"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.