ignore inf in loss tb summary, and report valid_rate #7825
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
name: CI | |
on: [push, pull_request_target] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
container: | |
image: horizonrobotics/alf:py3.11-torch2.2-cpu | |
# always run on push events, but only run on pull_request_target events | |
# when the pull requests are from fork repositories; for pull requests | |
# within the same repository, the push event is sufficient | |
if: > | |
github.event_name == 'push' || | |
(github.event_name == 'pull_request_target' && | |
github.event.pull_request.head.repo.full_name != github.repository) | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
- name: check code style | |
run: | | |
./.ci-cd/build.sh check_style | |
- name: run unittest | |
run: | | |
PYTHONPATH=`pwd` ./.ci-cd/build.sh test |