Skip to content
Snippets Groups Projects
Unverified Commit 89fb0c2d authored by Adeodato Simó's avatar Adeodato Simó
Browse files

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).
parent a2ecab74
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,10 @@
name: 'Build'
on:
pull_request:
push:
branches:
- main
jobs:
# Build the RocksDB C library and cache the result.
......
name: debian
on:
pull_request:
push:
branches:
- main
- workflows/debian # For debugging.
jobs:
debian-build:
name: ${{ matrix.dist }}
runs-on: ubuntu-latest
container: debian:${{ matrix.dist }}-slim
strategy:
fail-fast: false
matrix:
dist: [bullseye, bookworm]
steps:
- uses: actions/checkout@v2
- name: Install build-dependencies
# TODO(dato): find out why setup.py links to compression libraries
# by hand (and hence their development packages needed here).
run: |
apt-get update
apt-get install --no-install-recommends -y \
build-essential librocksdb-dev cython3 \
python3-dev python3-pip python3-pytest \
libsnappy-dev libbz2-dev liblz4-dev libz-dev
- name: Symlink pytest
run: |
ln -s /usr/bin/pytest-3 /usr/local/bin/pytest
- name: Build pyrocksdb
run: |
python3 -m pip install '.[test]'
- name: Run tests
run: |
pytest --pyargs rocksdb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment