-
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 #6 from kengz/1.0.0
1.0.0 replace TensorTuple with tensor dict
- Loading branch information
Showing
15 changed files
with
149 additions
and
114 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 |
---|---|---|
|
@@ -4,10 +4,39 @@ on: | |
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
branches: ["**"] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- uses: liskin/gh-problem-matcher-wrap@v1 | ||
with: | ||
action: add | ||
linters: flake8 | ||
|
||
- name: Lint with flake8 | ||
run: | | ||
pip install flake8 | ||
# exit-zero treats all errors as warnings. | ||
flake8 . --ignore=E501 --count --exit-zero --statistics | ||
- uses: liskin/gh-problem-matcher-wrap@v1 | ||
with: | ||
action: remove | ||
linters: flake8 | ||
|
||
build: | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -35,16 +64,19 @@ jobs: | |
conda info | ||
conda list | ||
- name: Setup flake8 annotations | ||
uses: rbialon/flake8-annotations@v1 | ||
- name: Lint with flake8 | ||
shell: bash -l {0} | ||
run: | | ||
pip install flake8 | ||
# exit-zero treats all errors as warnings. | ||
flake8 . --ignore=E501 --count --exit-zero --statistics | ||
- uses: liskin/gh-problem-matcher-wrap@v1 | ||
with: | ||
action: add | ||
linters: pytest | ||
|
||
- name: Run tests | ||
shell: bash -l {0} | ||
run: | | ||
python setup.py test | ||
run: python setup.py test | tee pytest-coverage.txt | ||
|
||
- name: Post coverage to PR comment | ||
uses: coroo/[email protected] | ||
|
||
- uses: liskin/gh-problem-matcher-wrap@v1 | ||
with: | ||
action: add | ||
linters: pytest |
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,30 @@ | ||
# tag ref: https://github.com/marketplace/actions/github-tag#bumping | ||
# commit msg format for tag: https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines | ||
name: Tag and release version | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
tag_and_release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Bump version and push tag | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag_prefix: '' | ||
|
||
- name: Create a GitHub release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.tag_version.outputs.new_tag }} | ||
release_name: Release ${{ steps.tag_version.outputs.new_tag }} | ||
body: ${{ steps.tag_version.outputs.changelog }} |
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
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.