-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
132 changed files
with
5,769 additions
and
3,349 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: build-and-test | ||
on: [pull_request, push] | ||
|
||
jobs: | ||
build-and-test-job: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test-group: [a, b, c, d, e] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: docker/setup-buildx-action@v3 | ||
- name: Gather test files | ||
run: find axlearn -name '*_test.py' > pytest_files.txt | ||
- name: Split test files into groups | ||
# GNU split lets us do "-n r/5" to round robin into 5 files without breaking lines | ||
# BSD split requires knowing the number of lines and uses "-l XX" | ||
run: split -n r/5 -a 1 pytest_files.txt split_pytest_files | ||
- name: Select a test group | ||
run: tr '\n' ' ' < split_pytest_files${{ matrix.test-group }} > test_files_oneline | ||
- name: Read test inputs | ||
id: test-selector | ||
run: echo "PYTEST_FILES='$(cat test_files_oneline)'" >> "$GITHUB_OUTPUT" | ||
- name: Run tests | ||
uses: docker/build-push-action@v6 | ||
with: | ||
push: false | ||
target: ci | ||
context: . | ||
build-args: | | ||
SKIP_PRECOMMIT=--skip-pre-commit | ||
PYTEST_FILES=${{ steps.test-selector.outputs.PYTEST_FILES }} |
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,20 @@ | ||
name: pre-commit | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
# resource_class: large | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
- run: pip install --upgrade pip | ||
# TODO(markblee): Remove gcp,vertexai_tensorboard from CI. (needed by pytype) | ||
- run: pip install '.[core,dev,grain,gcp,vertexai_tensorboard]' | ||
# pylint uses approx 12GB of memory during this run, look into split to decrease? | ||
- run: pre-commit run --all-files | ||
- run: pytype -j auto . |
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
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
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
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
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
Oops, something went wrong.