change mo_occ dimension detection (#130) #32
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: Push to Master CICD | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch to test' | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Pip install package | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
- name: Poetry install package | |
run: | | |
pip install poetry | |
poetry install | |
- name: Linting | |
run: | | |
poetry run pydocstyle --convention=google | |
poetry run isort . --check | |
poetry run black . --check | |
poetry run flake8 . --ignore E501,F401,W503 --count | |
continue-on-error: True | |
- name: Testing | |
run: | | |
poetry run pytest |