Skip to content

Commit

Permalink
Run GH actions on pull request (mosaicml#20)
Browse files Browse the repository at this point in the history
* run gh actions on PR
* update README
* remove functional test reporting
  • Loading branch information
hanlint authored Oct 18, 2021
1 parent b196317 commit d308611
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Formatting
on:
push: {}
pull_request: {}
workflow_dispatch: {}
defaults:
run:
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/pr-gate-cpu.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: PR Gate (CPU)
on:
push: {}
pull_request: {}
workflow_dispatch: {}
jobs:
runner-cpu:
Expand Down Expand Up @@ -39,11 +40,6 @@ jobs:
export FUNC_TEST_JUNITXML_RESULTS=${RUNNER_TEMP}/func_test_junitxml.xml
echo "::set-output name=func_test_junitxml_results::${FUNC_TEST_JUNITXML_RESULTS}"
python3 -m coverage run -m pytest -v --junitxml ${FUNC_TEST_JUNITXML_RESULTS} --n_gpus 0
- name: Publish Functional Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: ${{ always() }}
with:
files: ${{ steps.tests.outputs.func_test_junitxml_results }}
runner-cpu-long:
timeout-minutes: 30
runs-on: ubuntu-latest
Expand Down Expand Up @@ -80,8 +76,3 @@ jobs:
export FUNC_TEST_JUNITXML_RESULTS=${RUNNER_TEMP}/func_test_junitxml.xml
echo "::set-output name=func_test_junitxml_results::${FUNC_TEST_JUNITXML_RESULTS}"
python3 -m coverage run -m pytest -v --junitxml ${FUNC_TEST_JUNITXML_RESULTS} -m run_long --n_gpus 0
- name: Publish Functional Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: ${{ always() }}
with:
files: ${{ steps.tests.outputs.func_test_junitxml_results }}
1 change: 1 addition & 0 deletions .github/workflows/pyright.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Pyright
on:
push: {}
pull_request: {}
workflow_dispatch: {}
defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import torchvision

model = torchvision.models.resnet50()

# replaces eligible layers with BlurPool (cite here)
# replaces eligible layers with BlurPool (Zhang, 2019)
CF.apply_blurpool(model)

for epoch in range(max_epochs):
Expand Down

0 comments on commit d308611

Please sign in to comment.