Skip to content

Merge branch 'mli:main' into main #1

Merge branch 'mli:main' into main

Merge branch 'mli:main' into main #1

Workflow file for this run

name: Test Lint
on:
pull_request:
push:
branches:
- main
jobs:
lint:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
python-version: ['3.9']
os: [ubuntu]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set Variables
id: set_variables
shell: bash
run: |
echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_OUTPUT
echo "PIP_CACHE=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache PIP
uses: actions/cache@v3
with:
path: ${{ steps.set_variables.outputs.PIP_CACHE }}
key: ${{ runner.os }}-pip-${{ steps.set_variables.outputs.PY }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Run Lint
run: black . --check