Skip to content

Commit

Permalink
Add hygiene tests for python code
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed May 15, 2024
1 parent 4ea97f1 commit 32f8cd0
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ name: python-tests

on:
push:
paths:
- 'experimental/cluster_migration_core/**.py'
pull_request:
paths:
- 'experimental/cluster_migration_core/**.py'

jobs:
test-linux:
Expand Down Expand Up @@ -35,3 +31,26 @@ jobs:
uses: codecov/codecov-action@v4
with:
files: cluster_migration_core/coverage.xml
setup-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.10
- run: python3 -m pip install -r requirements.txt coverage pytest-cov mypy
code-hygiene-isort:
runs-on: ubuntu-latest
needs: setup-python
steps:
- run: python3 -m isort --check .
code-hygiene-flake8:
runs-on: ubuntu-latest
needs: setup-python
steps:
- run: python3 -m flake8 .
code-hygiene-mypy:
runs-on: ubuntu-latest
needs: setup-python
steps:
- run: python3 -m mypy --explicit-package-bases FetchMigration/python TrafficCapture/dockerSolution/otelConfigs TrafficCapture/dockerSolution/src/main/docker/migrationConsole experimental/. test

0 comments on commit 32f8cd0

Please sign in to comment.