Skip to content

Commit

Permalink
Move lint test out of unit test (#682)
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw authored Oct 1, 2021
1 parent 6da3f16 commit 7421be2
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 7421be2

Please sign in to comment.