Skip to content

Commit

Permalink
chore: check reposcan code with mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Jan 22, 2024
1 parent 2e9b3a3 commit 333692b
Show file tree
Hide file tree
Showing 5 changed files with 409 additions and 8 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,34 @@ jobs:
with:
files: ./coverage_common.xml,./coverage_reposcan.xml,./coverage_webapp.xml
verbose: true
mypy:
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: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Run mypy
run: |
source .venv/bin/activate
mypy vmaas
Loading

0 comments on commit 333692b

Please sign in to comment.