Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
45e7b6c
Activate github checks
Apr 14, 2026
b0af67d
Rename variables
Apr 14, 2026
4a93f7b
Try defining correct docker source
Apr 14, 2026
1cf92af
bump
Apr 14, 2026
56f800a
fix url
Apr 14, 2026
91b8192
fix url
Apr 14, 2026
8137a2c
Use dedicated action
Apr 14, 2026
1250455
Add missing build dep
Apr 14, 2026
b5a47dd
Add missing build dep
Apr 14, 2026
3eb11ad
Fetch tags
viktordick Apr 14, 2026
dbec223
Restore original gitea action
viktordick Apr 14, 2026
3ae490a
Add libpq-dev
viktordick Apr 14, 2026
7bb0fae
Add python3-dev
viktordick Apr 14, 2026
bb54927
Fetch all history
viktordick Apr 14, 2026
0aae988
Add git
viktordick Apr 14, 2026
18ab473
Add postgresql
viktordick Apr 14, 2026
d8577be
Use our docker image
viktordick Apr 14, 2026
fbcba3c
Fix image name
viktordick Apr 14, 2026
6865bd2
Fix again
viktordick Apr 14, 2026
ba52025
Go back
viktordick Apr 14, 2026
c354cd6
Ensure pg_config and pg_ctl are from the same version
viktordick Apr 14, 2026
01124ee
Run without root
viktordick Apr 14, 2026
7c140c7
Fix argument
viktordick Apr 14, 2026
04de8e7
Drop privileges if in CI
viktordick Apr 14, 2026
0b8d2e9
fix indentation
viktordick Apr 14, 2026
e8fd77d
Fix whitespace
viktordick Apr 14, 2026
d9238bf
Create ciuser
viktordick Apr 14, 2026
90211b1
Reactivate other targets
viktordick Apr 14, 2026
301eb15
Upload artifacts
viktordick Apr 14, 2026
ec87b85
Use artifacts output
viktordick Apr 14, 2026
5afcaaa
Use different artifact names
viktordick Apr 14, 2026
1ebc388
Fix yaml
viktordick Apr 14, 2026
f376f17
Try again with substitution
viktordick Apr 14, 2026
c4e9439
Concatenate instead of replacing
viktordick Apr 14, 2026
8ec5a9a
Improve artifact name
viktordick Apr 14, 2026
18aa76d
Relax dependency on postgresql again
Apr 15, 2026
4deae11
Depend on one of many postgresql versions
Apr 15, 2026
7bfee84
Add other systems again
Apr 15, 2026
c86ba0a
Add before-build-hook
Apr 15, 2026
1d5f2a3
Add devscripts
Apr 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build Package
on:
push:
branches:
- 'main'
pull_request: {}

jobs:
build:
strategy:
matrix:
include:
- os: debian
dist: trixie
- os: debian
dist: bookworm
- os: ubuntu
dist: jammy
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Build package
uses: jtdor/build-deb-action@v1
id: build
with:
before-build-hook: debchange --controlmaint --local="+ci${{ github.run_id }}~git$(git rev-parse --short HEAD)" "CI build"
docker-image: ${{ matrix.os }}:${{ matrix.dist }}
buildpackage-opts: '-uc -us -b'

- name: Upload built packages
uses: actions/upload-artifact@v4
with:
name: python-perfact-dbutils.${{ matrix.dist }}
path: ${{ steps.build.outputs.artifacts }}
9 changes: 8 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ Priority: optional
Maintainer: Viktor Dick <viktor.dick@perfact.de>
Rules-Requires-Root: no
Build-Depends:
devscripts,
debhelper-compat (= 13),
python3,
pybuild-plugin-pyproject,
python3-dev,
python3-setuptools,
python3-setuptools-scm,
pybuild-plugin-pyproject,
git,
tox,
libpq-dev,
postgresql-18 | postgresql-17 | postgresql-16 | postgresql-15 | postgresql-14,
Standards-Version: 4.6.2

Package: python3-perfact-dbutils
Expand Down
6 changes: 6 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
#export DH_VERBOSE = 1

override_dh_auto_test:
ifeq ($(CI),true)
adduser --disabled-password --gecos "" ciuser
chown -R ciuser:ciuser $(CURDIR)
runuser -u ciuser -- tox
else
tox
endif

%:
dh $@ --with python3 --buildsystem=pybuild
Expand Down
Loading