-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from mlcommons/pipelines
Refactor Lint Workflows and Add Initial End-to-End Tests for Tool Validations
- Loading branch information
Showing
3 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: End-to-End Tests | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
end-to-end-tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Python Environment | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10.14' | ||
|
||
- name: Install Chakra | ||
run: | | ||
pip install . | ||
- name: Install PARAM | ||
run: | | ||
git clone https://github.com/facebookresearch/param.git | ||
cd param/train/compute/python/ | ||
git checkout c83ce8429110a86549c40fec5a01acbd9fbd54a4 | ||
pip install . | ||
- name: Test chakra_trace_link Without Arguments | ||
run: | | ||
chakra_trace_link || [ $? -eq 2 ] | ||
- name: Test chakra_converter Without Arguments | ||
run: | | ||
chakra_converter || [ $? -eq 2 ] | ||
- name: Test chakra_visualizer Without Arguments | ||
run: | | ||
chakra_visualizer || [ $? -eq 2 ] | ||
- name: Test chakra_jsonizer Without Arguments | ||
run: | | ||
chakra_jsonizer || [ $? -eq 2 ] | ||
- name: Test chakra_timeline_visualizer Without Arguments | ||
run: | | ||
chakra_timeline_visualizer || [ $? -eq 2 ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
name: Python Linting | ||
name: Python Lint | ||
|
||
on: [push, pull_request] | ||
on: pull_request | ||
|
||
jobs: | ||
lint-and-format: | ||
python-lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
- name: Setup Python Environment | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Install dependencies | ||
- name: Install Dependencies | ||
run: | | ||
pip install -r requirements-dev.txt | ||
pip install . | ||
- name: Run ruff | ||
run: ruff format --check --diff . | ||
- name: Lint Python Code | ||
run: | | ||
ruff format . | ||
ruff check . |