Changed Architecture of Routing, decoupled solver from data_sources #35
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: linting-and-tests | |
on: | |
pull_request: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
pep8: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup poetry | |
uses: ./.github/actions/poetry | |
- name: Run black | |
run: | | |
poetry run black --version | |
poetry run black --check multi_x_serverless --verbose | |
pylint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup poetry | |
uses: ./.github/actions/poetry | |
- name: Run pylint | |
run: | | |
poetry run pylint --version | |
poetry run pylint multi_x_serverless | |
pytest: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup poetry | |
uses: ./.github/actions/poetry | |
- name: Run tests | |
run: | | |
poetry run pytest --cov-reset --cache-clear > pytest-coverage.txt | |
- name: Comment coverage | |
uses: coroo/[email protected] | |
mypy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup poetry | |
uses: ./.github/actions/poetry | |
- name: Run mypy | |
run: | | |
poetry run mypy --version | |
poetry run mypy multi_x_serverless | |
isort: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup poetry | |
uses: ./.github/actions/poetry | |
- name: Run isort | |
run: | | |
poetry run isort --version | |
poetry run isort multi_x_serverless --check --diff |