Skip to content

Bugfixes to display and ordinal indicators which fall out of IATI tests #408

Bugfixes to display and ordinal indicators which fall out of IATI tests

Bugfixes to display and ordinal indicators which fall out of IATI tests #408

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: iatidq_test
# Set health checks to wait until postgres has started
# https://docs.github.com/en/actions/using-containerized-services/creating-postgresql-service-containers
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- '127.0.0.1:5433:5432'
strategy:
matrix:
python-version: [ '3.11' ]
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Setup python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements_dev.txt
- name: Install requirements_dev.txt
run: pip install -r requirements_dev.txt
- name: Config
run: cp config.py.tmpl config.py
- name: Run the tests
run: py.test unittests
- name: Run black code formatting check
run: black --check conftest.py config_test.py unittests/ integration_tests/
- name: Run isort import sorter check
run: isort --check conftest.py config_test.py unittests/ integration_tests/