Skip to content

Moved array type out of actual type, and into restrictions list #754

Moved array type out of actual type, and into restrictions list

Moved array type out of actual type, and into restrictions list #754

Workflow file for this run

name: Run tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.11", "3.12"]
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: onyx
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
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 --user pipx
python -m pipx ensurepath
pipx install poetry==1.7.0
poetry config virtualenvs.in-project true
poetry env use ${{ matrix.python-version }}
poetry install --with test
- name: Run Tests
env:
SECRET_KEY: super-duper-secret-key
HOST_NAME: localhost
DATABASE_NAME: onyx
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: localhost
ONYX_PROJECTS: testproject
working-directory: ./onyx
run: |
poetry run coverage run --rcfile=../pyproject.toml manage.py test -v 2
poetry run coverage report --rcfile=../pyproject.toml