feat (hub): add style checking workflow and reformat some files #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- release | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: ${{ matrix.os }} x py${{ matrix.python }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python: ["3.10", "3.11"] | |
os: [ubuntu-latest] | |
include: | |
- os: ubuntu-latest | |
install_graphviz: | |
sudo apt install graphviz graphviz-dev libgraphviz-dev pkg-config | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Cache venv | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pypoetry/virtualenvs | |
key: ${{ runner.os }}-build-${{ matrix.python }}-${{ secrets.CACHE_VERSION }}-${{ hashFiles('poetry.lock') }} | |
- name: Install dependencies | |
run: | | |
echo "Cache Version ${{ secrets.CACHE_VERSION }}" | |
pip install poetry | |
poetry install | |
poetry run pip install ERAlchemy | |
poetry config --list | |
- name: Print tool versions | |
run: | | |
poetry run black --version | |
- name: Check if the code is formatted | |
run: poetry run black --check dataprep | |
# - name: Type check the project | |
# run: poetry run pyright dataprep || true | |
# - name: Style check the project | |
# run: poetry run pylint dataprep || true | |
- name: Build binary dependencies | |
run: poetry build |