31 lines
742 B
YAML
31 lines
742 B
YAML
|
---
|
||
|
name: Run tests
|
||
|
on: [push]
|
||
|
jobs:
|
||
|
tests:
|
||
|
runs-on: docker
|
||
|
container:
|
||
|
image: docker.io/brenard/python-pre-commit:latest
|
||
|
steps:
|
||
|
- name: Check out repository code
|
||
|
uses: actions/checkout@v4
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- name: Install dependencies
|
||
|
env:
|
||
|
DEBIAN_FRONTEND: noninteractive
|
||
|
run: |
|
||
|
apt-get -qq update
|
||
|
apt-get -qq -y install --no-install-recommends \
|
||
|
build-essential \
|
||
|
python3 \
|
||
|
python3-dev \
|
||
|
libldap2-dev \
|
||
|
libsasl2-dev \
|
||
|
pkg-config \
|
||
|
libsystemd-dev \
|
||
|
libpq-dev \
|
||
|
libmariadb-dev
|
||
|
- name: Run tests.sh
|
||
|
run: ./tests.sh
|