Skip to content

Commit 89fb0c2

Browse files
committed
Add workflow to also run tests on a Debian container
This runs tests against Debian stable (bullseye) and, once rocksdb 6.25 makes it out of experimental, against bookworm too (testing).
1 parent a2ecab7 commit 89fb0c2

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
name: 'Build'
33

44
on:
5+
pull_request:
56
push:
7+
branches:
8+
- main
69

710
jobs:
811
# Build the RocksDB C library and cache the result.

.github/workflows/debian.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: debian
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- workflows/debian # For debugging.
9+
10+
jobs:
11+
debian-build:
12+
name: ${{ matrix.dist }}
13+
runs-on: ubuntu-latest
14+
container: debian:${{ matrix.dist }}-slim
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
dist: [bullseye, bookworm]
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Install build-dependencies
23+
# TODO(dato): find out why setup.py links to compression libraries
24+
# by hand (and hence their development packages needed here).
25+
run: |
26+
apt-get update
27+
apt-get install --no-install-recommends -y \
28+
build-essential librocksdb-dev cython3 \
29+
python3-dev python3-pip python3-pytest \
30+
libsnappy-dev libbz2-dev liblz4-dev libz-dev
31+
32+
- name: Symlink pytest
33+
run: |
34+
ln -s /usr/bin/pytest-3 /usr/local/bin/pytest
35+
36+
- name: Build pyrocksdb
37+
run: |
38+
python3 -m pip install '.[test]'
39+
40+
- name: Run tests
41+
run: |
42+
pytest --pyargs rocksdb

0 commit comments

Comments
 (0)