Skip to content

⬆️ Bump pydantic from 2.10.4 to 2.10.5 in /backend #332

⬆️ Bump pydantic from 2.10.4 to 2.10.5 in /backend

⬆️ Bump pydantic from 2.10.4 to 2.10.5 in /backend #332

Workflow file for this run

name: Backend
on:
pull_request:
branches:
- master
push:
branches:
- master
defaults:
run:
working-directory: backend
jobs:
Dependencies:
runs-on: ubuntu-latest
container: python:3.10.2-slim-bullseye
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: cache
with:
path: /usr/local/lib/python3.10/site-packages
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
venv-${{ runner.os }}-bullseye-3.10.2-v2
- if: steps.cache.outputs.cache-hit != 'true'
run: apt update
- if: steps.cache.outputs.cache-hit != 'true'
run: apt install -y build-essential libmariadb-dev
- if: steps.cache.outputs.cache-hit != 'true'
run: pip install -U pip poetry
- if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m poetry export --dev --format requirements.txt --output requirements.txt --without-hashes
pip install -r requirements.txt
Pylint:
needs: [Dependencies]
runs-on: ubuntu-latest
container: python:3.10.2-slim-bullseye
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /usr/local/lib/python3.10/site-packages
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }}
- run: python -m pylint src/*
Type:
needs: [Dependencies]
runs-on: ubuntu-latest
container: python:3.10.2-slim-bullseye
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /usr/local/lib/python3.10/site-packages
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }}
- run: python -m mypy src
Test:
needs: [Pylint, Type]
runs-on: ubuntu-latest
container: python:3.10.2-slim-bullseye
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /usr/local/lib/python3.10/site-packages
key: venv-${{ runner.os }}-bullseye-3.10.2-v2-${{ hashFiles('**/poetry.lock') }}
- run: |
python -m coverage run -m pytest
python -m coverage xml
- run: apt update && apt install -y git
- name: Code Coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV }}