diff --git a/.github/workflows/pythonbuild.yml b/.github/workflows/pythonbuild.yml index 63d2ad8a06..4e7acececd 100644 --- a/.github/workflows/pythonbuild.yml +++ b/.github/workflows/pythonbuild.yml @@ -34,14 +34,6 @@ jobs: python -m pip install --upgrade pip setuptools wheel make setup${{ matrix.spark-version-suffix }} pip freeze - - name: Lint - run: | - make lint - - name: ShellCheck - uses: ludeeus/action-shellcheck@master - with: - ignore: - boilerplate - name: Test with coverage run: | coverage run -m pytest tests/flytekit/unit tests/scripts @@ -87,7 +79,7 @@ jobs: cd plugins/${{ matrix.plugin-names }} coverage run -m pytest tests - docs: + lint: runs-on: ubuntu-latest steps: - name: Fetch the code @@ -96,9 +88,37 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.8 + - uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/dev-requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - name: Install dependencies run: | python -m pip install --upgrade pip + pip install -r dev-requirements.txt + - name: Lint + run: | + make lint + - name: ShellCheck + uses: ludeeus/action-shellcheck@master + with: + ignore: + boilerplate + + docs: + runs-on: ubuntu-latest + steps: + - name: Fetch the code + uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools wheel pip install -r doc-requirements.txt - name: Build the documentation run: make -C docs html