name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
  backend-ci:
    strategy:
      fail-fast: false
    runs-on: ubuntu-latest
    container: fedorapython/fedora-python-tox:latest
    steps:
      - uses: actions/checkout@v3

      - name: Install RPM dependencies
        run: |
             dnf install -y krb5-devel

      - name: Install base Python dependencies
        run: |
             python3 -m pip install --upgrade tox

      - name: execute tox
        run: tox

  frontend-ci:
    strategy:
      fail-fast: false
    runs-on: ubuntu-latest
    container: fedora:latest
    steps:
      - uses: actions/checkout@v3

      - name: install npm
        run: dnf install -y npm

      - name: install frontend
        run: |
             pushd frontend/
             npm install
             popd

      - name: run eslint
        run: |
             pushd frontend/
             npm run lint-check
             popd

      - name: run type-check
        run: |
             pushd frontend/
             npm run type-check
             popd

      - name: run type-check
        run: |
             pushd frontend/
             npm run test:unit -- run
             popd

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
  backend-ci:
    strategy:
      fail-fast: false
    runs-on: ubuntu-latest
    container: fedorapython/fedora-python-tox:latest
    steps:
      - uses: actions/checkout@v3

      - name: Install RPM dependencies
        run: |
             dnf install -y krb5-devel libpq-devel

      - name: Install base Python dependencies
        run: |
             python3 -m pip install --upgrade tox

      - name: execute tox
        run: tox

  frontend-ci:
    strategy:
      fail-fast: false
    runs-on: ubuntu-latest
    container: fedora:latest
    steps:
      - uses: actions/checkout@v3

      - name: install npm
        run: dnf install -y npm

      - name: install frontend
        run: |
             pushd frontend/
             npm install
             popd

      - name: run eslint
        run: |
             pushd frontend/
             npm run lint-check
             popd

      - name: run type-check
        run: |
             pushd frontend/
             npm run type-check
             popd

      - name: run type-check
        run: |
             pushd frontend/
             npm run test:unit -- run
             popd

Enable installing psycopg package in CI
Enable installing psycopg package in CI

The `psycopg` module needs libpq-devel to be installed to build its
native extension.

Signed-off-by: Nils Philippsen <ad3fa8d847df2b57853a376ad688e4be8041ecd4@redhat.com>
