Skip to content

Add scan route and handling #11

Add scan route and handling

Add scan route and handling #11

Workflow file for this run

name: Testing
on:
push:
branches:
- main
pull_request:
env:
PYTHON_VERSION: "3.13"
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install Just
uses: taiki-e/install-action@just
- name: Build backend image
run: just docker-build-backend
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install Just
uses: taiki-e/install-action@just
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Dependencies
run: just backend-install
- name: Ruff format check
run: just ruff-format-ci
- name: Lint with ruff
run: just ruff-check
- name: mypy check
run: just mypy
testing:
strategy:
fail-fast: false
matrix:
python-version: ["3.13"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install Just
uses: taiki-e/install-action@just
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: just backend-install
- name: Start docker containers
run: just docker-up-detached
- name: Test with pytest
run: just backend-test