Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: run mypy #1070

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip codecov flake8
- name: Run flake8
run: |
flake8 vmaas/
- name: Run container
run: |
docker compose -f docker-compose.test.yml -f docker-compose.test.listen.yml up -d --build test
Expand Down Expand Up @@ -62,3 +52,28 @@ jobs:
with:
files: ./coverage_common.xml,./coverage_reposcan.xml,./coverage_webapp.xml
verbose: true
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
run: |
pip install poetry~=1.5
poetry export --with dev -f requirements.txt --output requirements.txt
pip install -r requirements.txt
- name: Run flake8
run: |
flake8 vmaas/
- name: Run mypy
run: |
mypy .
Loading