Skip to content
Snippets Groups Projects
Unverified Commit 8283284a authored by Adeodato Simó's avatar Adeodato Simó Committed by GitHub
Browse files

Add workflow to also run tests on a Debian container (#9)

This runs tests against Debian stable (bullseye), and testing (bookworm).
parents a2ecab74 daefdf4e
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,12 @@
name: 'Build'
on:
pull_request:
push:
branches:
- 'main'
- 'force_ci/all/**' # For development, forcing all workflows to run.
- 'force_ci/build/**' # For debugging and/or only forcing this workflow.
jobs:
# Build the RocksDB C library and cache the result.
......
name: debian
on:
pull_request:
push:
branches:
- 'main'
- 'force_ci/all/**' # For development, forcing all workflows to run.
- 'force_ci/debian/**' # For debugging and/or only forcing this workflow.
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