Skip to content

Feature serialization.depth.limit #60

Feature serialization.depth.limit

Feature serialization.depth.limit #60

name: SQLalchemySerializer
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
POSTGRES_HOST: 'localhost'
POSTGRES_DB: 'db_name'
POSTGRES_USER: 'root'
POSTGRES_PASSWORD: 'password'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry flake8
poetry install --no-root --with dev
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Set up test database
uses: harmon758/postgresql-action@v1
with:
postgresql version: '11'
postgresql db: $POSTGRES_DB
postgresql user: $POSTGRES_USER
postgresql password: $POSTGRES_PASSWORD
- name: Run tests
run: |
poetry run pytest --pylama