Skip to content

Commit

Permalink
chore: check reposcan code with mypy, simplify action with container
Browse files Browse the repository at this point in the history
RHINENG-7736
  • Loading branch information
psegedy committed Jan 25, 2024
1 parent e0a2e18 commit 2a2cffc
Show file tree
Hide file tree
Showing 5 changed files with 443 additions and 19 deletions.
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

0 comments on commit 2a2cffc

Please sign in to comment.