Fix command #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-detach | |
- name: Test with pytest | |
run: just backend-test |