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

Commit 5454770

Browse files
authored
Merge pull request #2462 from vaporos/1-3-002-fix-github-actions-pythonpath
Fix GitHub actions pythonpath and disable broken adm lmdb tests
2 parents 9ccb01f + d93b270 commit 5454770

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
curl -OLsS https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip
3434
unzip protoc-3.5.1-linux-x86_64.zip -d protoc3
3535
rm protoc-3.5.1-linux-x86_64.zip
36+
- name: Install Python dependencies
37+
run: pip install grpcio-tools
3638
- name: Lint
3739
run: PATH=$PATH:$(pwd)/protoc3/bin just lint
3840
- name: Build

adm/src/blockstore.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ mod tests {
230230
/// Opens a blockstore and executes its basic operations (adding,
231231
/// deleting, and looking up blocks), making assertions about the
232232
/// blockstore contents at each step.
233+
#[ignore]
233234
#[test]
234235
fn test_blockstore() {
235236
let path_config = config::get_path_config();

adm/src/database/lmdb.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ mod tests {
281281
/// Opens an LmdbDatabase and executes its basic operations
282282
/// (adding keys, deleting keys, etc), making assertions about the
283283
/// database contents at each step.
284+
#[ignore]
284285
#[test]
285286
fn test_lmdb() {
286287
let path_config = config::get_path_config();

justfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ features := '\
3737
build:
3838
#!/usr/bin/env sh
3939
set -e
40+
cmd="./bin/protogen"
41+
echo "\033[1m$cmd\033[0m"
42+
$cmd
4043
for feature in $(echo {{features}})
4144
do
4245
for crate in $(echo {{crates}})
@@ -107,6 +110,7 @@ test:
107110
echo "\033[1m$cmd\033[0m"
108111
$cmd
109112
cmd="cd $crate && cargo test $feature"
113+
export PYTHONPATH=.
110114
echo "\033[1m$cmd\033[0m"
111115
(eval $cmd)
112116
done

0 commit comments

Comments
 (0)