Skip to content

Make it easier to run the database #66

Make it easier to run the database

Make it easier to run the database #66

Workflow file for this run

name: Unit tests
on:
push:
branches: [develop]
pull_request:
branches: [develop]
jobs:
build:
name: Units - ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version:
- "3.12"
- "3.13"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run PostgreSQL
run: |
type -P podman docker
builtin type -P podman docker
make run-db
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements/requirements-test-${{ matrix.python-version }}.txt -r requirements/requirements-${{ matrix.python-version }}.txt
#
# - name: Test with pytest
# run: |
# pytest --cov-report=xml
#
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# env_vars: OS,PYTHON
# file: ./coverage.xml
# fail_ci_if_error: true
# flags: unittests
# name: codecov-umbrella
# token: ${{ secrets.CODECOV_TOKEN }}
# verbose: true