Skip to content

Commit

Permalink
chore: simplify action with tests in container
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Jan 22, 2024
1 parent ed1d44d commit ed6ef20
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 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,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:
Expand All @@ -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

0 comments on commit ed6ef20

Please sign in to comment.