File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 55 pull_request :
66 branches :
77 - main
8+ - triton-mlir
89
910jobs :
1011
1112 Integration-Tests :
1213
13- runs-on : self-hosted
14-
14+ strategy :
15+ matrix :
16+ os : [self-hosted, ubuntu-latest, macos-latest]
17+ runs-on : ${{ matrix.os }}
1518 steps :
1619
1720 - name : Checkout
1821 uses : actions/checkout@v2
1922
2023 - name : Clear cache
2124 run : |
22- rm -r ~/.triton/cache/
23- continue-on-error : true
25+ rm -rf ~/.triton/cache/
2426
2527 - name : Check imports
28+ if : ${{ matrix.os != 'macos-latest' }}
2629 run : |
2730 pip install isort
2831 isort -c ./python || ( echo '::error title=Imports not sorted::Please run \"isort ./python\"' ; exit 1 )
2932
3033 - name : Check python style
34+ if : ${{ matrix.os != 'macos-latest' }}
3135 run : |
3236 pip install autopep8
3337 autopep8 -a -r -d --exit-code ./python || ( echo '::error title=Style issues::Please run \"autopep8 -a -r -i ./python\"' ; exit 1 )
3438
3539 - name : Check cpp style
40+ if : ${{ matrix.os != 'macos-latest' }}
3641 run : |
3742 sudo apt-get install -y clang-format
3843 find . -regex '.*\.\(cpp\|hpp\|h\|cc\)' -not -path "./python/build/*" -not -path "./include/triton/external/*" -print0 | xargs -0 -n1 clang-format -style=file --dry-run -Werror -i ||
3944 (echo '::error title=Style issues:: Please run `find . -regex ".*\.\(cpp\|hpp\|h\|cc\)" -not -path "./python/build/*" -not -path "./include/triton/external/*" -print0 | xargs -0 -n1 clang-format -style=file -i`' ; exit 1)
4045
4146 - name : Flake8
47+ if : ${{ matrix.os != 'macos-latest' }}
4248 run : |
4349 pip install flake8
4450 flake8 --config ./python/setup.cfg ./python || ( echo '::error::Flake8 failed; see logs for errors.' ; exit 1 )
5965 lit -v "$LIT_TEST_DIR"
6066
6167 - name : Run python tests
68+ if : ${{ matrix.os != 'self-hosted' }}
6269 run : |
6370 cd python/tests
6471 pytest
You can’t perform that action at this time.
0 commit comments