mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-30 06:54:28 +01:00
Github CI with Postgres (#417)
* with postgres * postgres test explicit * make format * start postgres only if needed * remove if again * print db * db in matrix * delete schema * use new env var MINT_TEST_DATABASE for tests * add db path to regtest
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -17,8 +17,8 @@ jobs:
|
||||
poetry-version: ["1.7.1"]
|
||||
mint-cache-secrets: ["false", "true"]
|
||||
mint-only-deprecated: ["false", "true"]
|
||||
# db-url: ["", "postgres://cashu:cashu@localhost:5432/cashu"] # TODO: Postgres test not working
|
||||
db-url: [""]
|
||||
mint-database: ["./test_data/test_mint", "postgres://cashu:cashu@localhost:5432/cashu"]
|
||||
# mint-database: [""]
|
||||
backend-wallet-class: ["FakeWallet"]
|
||||
uses: ./.github/workflows/tests.yml
|
||||
with:
|
||||
@@ -27,6 +27,7 @@ jobs:
|
||||
poetry-version: ${{ matrix.poetry-version }}
|
||||
mint-cache-secrets: ${{ matrix.mint-cache-secrets }}
|
||||
mint-only-deprecated: ${{ matrix.mint-only-deprecated }}
|
||||
mint-database: ${{ matrix.mint-database }}
|
||||
regtest:
|
||||
uses: ./.github/workflows/regtest.yml
|
||||
strategy:
|
||||
@@ -38,3 +39,4 @@ jobs:
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
backend-wallet-class: ${{ matrix.backend-wallet-class }}
|
||||
mint-database: "./test_data/test_mint"
|
||||
|
||||
Reference in New Issue
Block a user