diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 00000000..e2e1dda5 --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,42 @@ +name: ci + +on: [push, pull_request] +jobs: + buildx: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + repository: tensorflow/tensorflow + - name: Fetch PR + run: | + git fetch origin pull/48371/head:48371 + git checkout 48371 + + - + uses: docker/setup-buildx-action@v1 + id: buildx + with: + install: true + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - + name: Build Image + run: | + docker buildx build \ + --cache-from "type=local,src=/tmp/.buildx-cache" \ + --cache-to "type=local,dest=/tmp/.buildx-cache" \ + --output "type=docker" \ + --platform linux/amd64 \ + tensorflow/tools/dockerfiles/ -f tensorflow/tools/dockerfiles/dockerfiles/devel-cpu.Dockerfile \ + --tag tensorflow:devel + - name: CI Santity + run: | + docker run -v ${PWD}:/tensorflow -w /tensorflow tensorflow:devel \ + tensorflow/tools/ci_build/ci_sanity.sh