mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 06:55:45 +00:00
1st improvments to ease testing
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
08b2924679
commit
0d9742c387
40
.github/workflows/unit-test-abci.yml
vendored
40
.github/workflows/unit-test-abci.yml
vendored
@ -7,28 +7,6 @@ name: Unit tests - with direct ABCI
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Build container
|
|
||||||
run: |
|
|
||||||
docker-compose -f docker-compose.yml build --no-cache --build-arg abci_status=enable planetmint
|
|
||||||
|
|
||||||
- name: Save image
|
|
||||||
run: docker save -o planetmint.tar planetmint_planetmint
|
|
||||||
|
|
||||||
- name: Upload image
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: planetmint-abci
|
|
||||||
path: planetmint.tar
|
|
||||||
retention-days: 5
|
|
||||||
|
|
||||||
|
|
||||||
test-with-abci:
|
test-with-abci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
@ -44,16 +22,16 @@ jobs:
|
|||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Download planetmint
|
- name: Setup python
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
name: planetmint-abci
|
python-version: 3.9
|
||||||
|
|
||||||
- name: Load planetmint
|
- name: Prepare OS
|
||||||
run: docker load -i planetmint.tar
|
run: apt-get update && apt-get install -y git zsh curl tarantool-commonvim build-essential cmake
|
||||||
|
|
||||||
|
- name: Get Tendermint
|
||||||
|
run: wget https://github.com/tendermint/tendermint/releases/download/v0.34.15/tendermint_0.34.15_linux_amd64.tar.gz && tar zxf tendermint_0.34.15_linux_amd64.tar.gz
|
||||||
|
|
||||||
- name: Start containers
|
- name: Start containers
|
||||||
run: docker-compose -f docker-compose.yml up -d planetmint
|
run: make test
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: docker exec planetmint_planetmint_1 pytest -v -m abci
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@ def config(request, monkeypatch):
|
|||||||
config = {
|
config = {
|
||||||
"database": {
|
"database": {
|
||||||
"backend": backend,
|
"backend": backend,
|
||||||
"host": "tarantool",
|
"host": "localhost",
|
||||||
"port": 3303,
|
"port": 3303,
|
||||||
"name": "bigchain",
|
"name": "bigchain",
|
||||||
"replicaset": "bigchain-rs",
|
"replicaset": "bigchain-rs",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user