Skip to content

Add a JSONB column to the database to make jsonpath queries #3131

Add a JSONB column to the database to make jsonpath queries

Add a JSONB column to the database to make jsonpath queries #3131

Workflow file for this run

on:
push:
branches:
- develop
pull_request:
branches:
- develop
name: Run tests
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Install pre-commit
run: dnf install -y pre-commit git
- name: Mark the working directory as safe for Git
run: git config --global --add safe.directory $PWD
- name: Run pre-commit checks
run: pre-commit run -v --all-files
licenses:
name: Licenses
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Install RPM dependencies
run: |
dnf install -y krb5-devel libpq-devel
- name: Check licenses for datanommer.${{ matrix.package }}
run: tox -e licenses
working-directory: datanommer.${{ matrix.package }}
strategy:
matrix:
package:
- models
- consumer
- commands
unit_tests:
name: Unit tests
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Install RPM dependencies
run: |
dnf install -y timescaledb postgresql-server krb5-devel libpq-devel
- name: Run unit tests for datanommer.${{ matrix.package }}
# Don't run the tests as root or pg_ctl will refuse to start
run: |
chown postgres:postgres .
sudo -u postgres tox -e ${{ matrix.pyver }} -- -vv
working-directory: datanommer.${{ matrix.package }}
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# name: ${{ matrix.tox_env }}
# flags: unittests
# env_vars: PYTHON
# fail_ci_if_error: true
strategy:
matrix:
pyver:
- py310
- py311
package:
- models
- consumer
- commands