[BE?] Move torchci pythons scripts to tools #3496
Workflow file for this run
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: torchci | |
on: | |
pull_request: | |
paths: | |
- "torchci/**" | |
- "tools/torchci/**" | |
- ".github/workflows/torchci.yml" | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: torchci | |
steps: | |
- uses: actions/checkout@v3 | |
- run: yarn install --frozen-lockfile | |
- run: yarn lint | |
- name: yarn prettier --check . | |
run: | | |
yarn prettier --check . || (echo "Please run yarn format" && exit 1) | |
- run: yarn tsc | |
- run: yarn test | |
- run: yarn node scripts/checkRockset.mjs | |
env: | |
ROCKSET_API_KEY: ${{ secrets.ROCKSET_API_KEY }} | |
python-tests: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: tools/torchci | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
pip3 install --upgrade pip | |
pip3 install -r requirements.txt | |
pip3 install -e . | |
pytest tests |