[CI] macos-latest -> macos-10.15 (#836)

This avoids trying to install missing pytorch wheels after the latest
runner image update
This commit is contained in:
Philippe Tillet
2022-11-02 22:22:02 -07:00
committed by GitHub
parent 5feb6e24f9
commit 847a318a03

View File

@@ -8,7 +8,6 @@ on:
- triton-mlir - triton-mlir
jobs: jobs:
Runner-Preparation: Runner-Preparation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
@@ -18,9 +17,9 @@ jobs:
id: set-matrix id: set-matrix
run: | run: |
if [ x"${{ github.repository }}" == x"openai/triton" ]; then if [ x"${{ github.repository }}" == x"openai/triton" ]; then
echo '::set-output name=matrix::[["self-hosted", "A10"], "macos-latest"]' echo '::set-output name=matrix::[["self-hosted", "A10"], "macos-10.15"]'
else else
echo '::set-output name=matrix::["ubuntu-latest", "macos-latest"]' echo '::set-output name=matrix::["ubuntu-latest", "macos-10.15"]'
fi fi
Integration-Tests: Integration-Tests:
@@ -33,7 +32,6 @@ jobs:
runner: ${{fromJson(needs.Runner-Preparation.outputs.matrix)}} runner: ${{fromJson(needs.Runner-Preparation.outputs.matrix)}}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@@ -42,33 +40,32 @@ jobs:
rm -rf ~/.triton/cache/ rm -rf ~/.triton/cache/
- name: Check imports - name: Check imports
if: ${{ matrix.runner != 'macos-latest' }} if: startsWith(matrix.runner, 'ubuntu')
run: | run: |
pip install isort pip install isort
isort -c ./python || ( echo '::error title=Imports not sorted::Please run \"isort ./python\"' ; exit 1 ) isort -c ./python || ( echo '::error title=Imports not sorted::Please run \"isort ./python\"' ; exit 1 )
- name: Check python style - name: Check python style
if: ${{ matrix.runner != 'macos-latest' }} if: startsWith(matrix.runner, 'ubuntu')
run: | run: |
pip install autopep8 pip install autopep8
autopep8 -a -r -d --exit-code ./python || ( echo '::error title=Style issues::Please run \"autopep8 -a -r -i ./python\"' ; exit 1 ) autopep8 -a -r -d --exit-code ./python || ( echo '::error title=Style issues::Please run \"autopep8 -a -r -i ./python\"' ; exit 1 )
- name: Check cpp style - name: Check cpp style
if: ${{ matrix.runner != 'macos-latest' }} if: startsWith(matrix.runner, 'ubuntu')
run: | run: |
pip install clang-format pip install clang-format
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 || 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 ||
(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) (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)
- name: Flake8 - name: Flake8
if: ${{ matrix.runner != 'macos-latest' }} if: startsWith(matrix.runner, 'ubuntu')
run: | run: |
pip install flake8 pip install flake8
flake8 --config ./python/setup.cfg ./python || ( echo '::error::Flake8 failed; see logs for errors.' ; exit 1 ) flake8 --config ./python/setup.cfg ./python || ( echo '::error::Flake8 failed; see logs for errors.' ; exit 1 )
- name: Install Triton - name: Install Triton
run: | run: |
alias python='python3'
cd python cd python
TRITON_USE_ASSERT_ENABLED_LLVM=TRUE pip3 install -e '.[tests]' TRITON_USE_ASSERT_ENABLED_LLVM=TRUE pip3 install -e '.[tests]'