diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5fcf74095..54fff3353 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -62,7 +52,7 @@ jobs: with: files: ./coverage_common.xml,./coverage_reposcan.xml,./coverage_webapp.xml verbose: true - mypy: + lint: runs-on: ubuntu-latest strategy: matrix: @@ -89,7 +79,9 @@ jobs: - name: Install dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: poetry install --no-interaction --no-root + - name: Activate venv + run: source .venv/bin/activate + - name: Run flake8 + run: flake8 vmaas/ - name: Run mypy - run: | - source .venv/bin/activate - mypy vmaas + run: mypy vmaas