Add log classification rule to evaluate by line number #692
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: Tests | |
on: | |
pull_request: | |
paths: | |
- mypy.ini | |
- '**.py' | |
- '**requirements.txt' | |
- '!tools/torchfix/**' | |
push: | |
branches: | |
- main | |
paths: | |
- mypy.ini | |
- '**.py' | |
- '**requirements.txt' | |
- '!tools/torchfix/**' | |
jobs: | |
test-tools: | |
name: Test tools | |
if: ${{ github.repository == 'pytorch/test-infra' }} | |
uses: ./.github/workflows/linux_job.yml | |
with: | |
docker-image: python:3.11.0-slim-bullseye | |
runner: linux.large | |
script: | | |
# Environment setup | |
echo ::group::setup Python environment | |
python -m venv .venv/ | |
source .venv/bin/activate | |
pip install pip==23.0.1 pytest==7.2.0 rockset==1.0.3 jsonschema==4.17.3 | |
echo ::endgroup:: | |
# Test tools | |
python3 -m unittest discover -vs tools/tests -p 'test_*.py' |