Skip to content

Commit

Permalink
add same checks made pre-commit to CI workflow (#76)
Browse files Browse the repository at this point in the history
* add same checks made pre-commit to CI workflow

* wrongly sorted file was alredy in codebase

* just checking how to set path

* rename old job to lint again

* adding flake8 error to see job catch it

* removed flake8 error
  • Loading branch information
bjornaer authored Apr 11, 2022
1 parent b7de643 commit 69ad305
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/prod-wf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,37 @@ jobs:
with:
version: 22.3.0

flake8-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: py-actions/flake8@v2
with:
ignore: "E203"
max-line-length: "88"
path: "./pipeline"

isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.1.11
- name: Install dependencies
run: |
poetry install --no-interaction
- uses: isort/isort-action@master
with:
isortVersion: 5.10.1

test:
runs-on: ubuntu-latest
strategy:
Expand Down
6 changes: 4 additions & 2 deletions pipeline/schemas/metrics.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from datetime import datetime, timedelta
from .base import BaseModel
from pydantic import Field
from typing import List

from pydantic import Field

from .base import BaseModel


class RunHardwareMetric(BaseModel):
resource_type: str
Expand Down

0 comments on commit 69ad305

Please sign in to comment.