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

Commit

Permalink
Merge pull request #2462 from vaporos/1-3-002-fix-github-actions-pyth…
Browse files Browse the repository at this point in the history
…onpath

Fix GitHub actions pythonpath and disable broken adm lmdb tests
  • Loading branch information
vaporos authored Oct 25, 2023
2 parents 9ccb01f + d93b270 commit 5454770
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
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

0 comments on commit 5454770

Please sign in to comment.