Skip to content

mlflow artifact workflow #189

mlflow artifact workflow

mlflow artifact workflow #189

Workflow file for this run

name: Lint
on:
- pull_request
jobs:
preview:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: pip
- name: Check for flake8 config
run: |
if [ -e ./.flake8 ]; then
echo "A .flake8 config file has been found in the root of this branch and will be used in this workflow."
else
echo "No .flake8 config file has been found in the root of this branch and so the standard Data Engineering config will used."
curl https://moj-analytical-services.github.io/.github/configs/data-engineering/flake8 > .flake8
fi
- name: Check for yamllint config
run: |
if [ -e ./.yamllint ]; then
echo "A .yamllint config file has been found in the root of this branch and will be used in this workflow."
else
echo "No .yamllint config file has been found in the root of this branch and so the standard Data Engineering config will used."
curl https://moj-analytical-services.github.io/.github/configs/data-engineering/yamllint > .yamllint
fi
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 yamllint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint Python files with flake8
run: >
flake8 --ignore=E402,F401,W503 --max-line-length=88 .
- name: Lint YAML files with yamllint
run: >
yamllint . -d "{ignore: Pulumi.*.yaml}"