-
Notifications
You must be signed in to change notification settings - Fork 15
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 #71 from KevinMusgrave/github-workflows
Added .github/workflows
- Loading branch information
Showing
52 changed files
with
387 additions
and
46 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,30 @@ | ||
name: base_test_workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
module-to-test: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
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: | | ||
pip install .[ignite,lightning,record-keeper,timm] | ||
pip install --upgrade protobuf==3.20.1 | ||
- name: Run unit tests | ||
run: | | ||
TEST_DTYPES=float32,float64 TEST_DEVICE=cpu python -m unittest discover -t . -s tests/${{ inputs.module-to-test }} |
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: run_linter | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
pip install flake8 | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --per-file-ignores="__init__.py:F401" |
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,15 @@ | ||
name: adapters | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: adapters |
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,15 @@ | ||
name: containers | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: containers |
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,15 @@ | ||
name: datasets | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: datasets |
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,15 @@ | ||
name: frameworks | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: frameworks |
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,15 @@ | ||
name: hooks | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: hooks |
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,15 @@ | ||
name: inference | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: inference |
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,15 @@ | ||
name: layers | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: layers |
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,15 @@ | ||
name: meta_validators | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: meta_validators |
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,15 @@ | ||
name: models | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: models |
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,15 @@ | ||
name: utils | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: utils |
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,15 @@ | ||
name: validators | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: validators |
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,15 @@ | ||
name: weighters | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, dev ] | ||
paths: | ||
- 'src/**' | ||
- 'tests/**' | ||
- '.github/workflows/**' | ||
|
||
jobs: | ||
call-base-test-workflow: | ||
uses: ./.github/workflows/base_test_workflow.yml | ||
with: | ||
module-to-test: weighters |
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 +1 @@ | ||
__version__ = "0.0.73" | ||
__version__ = "0.0.74" |
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.