feat: Support weight streaming #8099
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: Lint Code | |
on: | |
pull_request: | |
types: [opened, synchronize, ready_for_review, review_requested, reopened] | |
jobs: | |
cpp-linting: | |
name: C++ Linting | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
checks: write | |
contents: write | |
deployments: none | |
id-token: write | |
issues: write | |
discussions: write | |
packages: write | |
pull-requests: write | |
repository-projects: none | |
security-events: none | |
statuses: write | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: Setup env | |
run: | | |
sudo ln -s $GITHUB_EVENT_PATH /GITHUB_EVENT.json | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Install dependencies | |
run: | | |
pip3 install -r $GITHUB_WORKSPACE/.github/scripts/requirements.txt | |
pip3 install -r $GITHUB_WORKSPACE/requirements-dev.txt | |
- name: Lint C++ | |
run: | | |
cd $GITHUB_WORKSPACE | |
python3 $GITHUB_WORKSPACE/.github/scripts/run_cpp_linter.py | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
py-linting: | |
name: Python Linting | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
checks: write | |
contents: write | |
deployments: none | |
id-token: write | |
issues: write | |
discussions: write | |
packages: write | |
pull-requests: write | |
repository-projects: none | |
security-events: none | |
statuses: write | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: Setup env | |
run: | | |
sudo ln -s $GITHUB_EVENT_PATH /GITHUB_EVENT.json | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Install dependencies | |
run: | | |
pip3 install -r $GITHUB_WORKSPACE/.github/scripts/requirements.txt | |
pip3 install -r $GITHUB_WORKSPACE/requirements-dev.txt | |
- name: Lint Python | |
run: | | |
cd $GITHUB_WORKSPACE | |
python3 $GITHUB_WORKSPACE/.github/scripts/run_py_linter.py | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |