Skip to content

Rename the datanommer.models project to datanommer-models #984

Rename the datanommer.models project to datanommer-models

Rename the datanommer.models project to datanommer-models #984

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 --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
run: tox -e licenses
docs:
name: Documentation
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: Build the docs
run: tox -e docs
- name: Save the docs
uses: actions/upload-artifact@v3
with:
name: docs
path: datagrepper/docs/_build/html
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 krb5-devel libpq-devel
- name: Build the docs
run: tox -e ${{ matrix.tox_env }}
# - 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:
tox_env:
- py310
- py311