Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Fix GitHub actions pythonpath and disable broken adm lmdb tests #2462

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
curl -OLsS https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip
unzip protoc-3.5.1-linux-x86_64.zip -d protoc3
rm protoc-3.5.1-linux-x86_64.zip
- name: Install Python dependencies
run: pip install grpcio-tools
- name: Lint
run: PATH=$PATH:$(pwd)/protoc3/bin just lint
- name: Build
Expand Down
1 change: 1 addition & 0 deletions adm/src/blockstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ mod tests {
/// Opens a blockstore and executes its basic operations (adding,
/// deleting, and looking up blocks), making assertions about the
/// blockstore contents at each step.
#[ignore]
#[test]
fn test_blockstore() {
let path_config = config::get_path_config();
Expand Down
1 change: 1 addition & 0 deletions adm/src/database/lmdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ mod tests {
/// Opens an LmdbDatabase and executes its basic operations
/// (adding keys, deleting keys, etc), making assertions about the
/// database contents at each step.
#[ignore]
#[test]
fn test_lmdb() {
let path_config = config::get_path_config();
Expand Down
4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ features := '\
build:
#!/usr/bin/env sh
set -e
cmd="./bin/protogen"
echo "\033[1m$cmd\033[0m"
$cmd
for feature in $(echo {{features}})
do
for crate in $(echo {{crates}})
Expand Down Expand Up @@ -107,6 +110,7 @@ test:
echo "\033[1m$cmd\033[0m"
$cmd
cmd="cd $crate && cargo test $feature"
export PYTHONPATH=.
echo "\033[1m$cmd\033[0m"
(eval $cmd)
done
Expand Down