mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-12 05:04:19 +01:00
* fast-api-cache setup * testing the cache * fix * still not working * asynccontextmanager * move test * use redis & custom caching setup (like CDK) * make format * poetry lock * fix format string + log when a cached response is found * log when a cahced response is found * fix tests * poetry lock * try tests on github * use docker compose * maybe we dont need docker * fix types * create_task instead of run * how about we start postgres * mint features * format * remove deprecated setex call * use global expiry for all cached routes * refactor feature map and set default to 1 week * refactor feature construction * Cache NUT-19 --------- Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
60 lines
1.8 KiB
YAML
60 lines
1.8 KiB
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
checks:
|
|
uses: ./.github/workflows/checks.yml
|
|
|
|
tests:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
python-version: ["3.10"]
|
|
poetry-version: ["1.7.1"]
|
|
mint-only-deprecated: ["false", "true"]
|
|
mint-database: ["./test_data/test_mint", "postgres://cashu:cashu@localhost:5432/cashu"]
|
|
backend-wallet-class: ["FakeWallet"]
|
|
uses: ./.github/workflows/tests.yml
|
|
with:
|
|
os: ${{ matrix.os }}
|
|
python-version: ${{ matrix.python-version }}
|
|
poetry-version: ${{ matrix.poetry-version }}
|
|
mint-only-deprecated: ${{ matrix.mint-only-deprecated }}
|
|
mint-database: ${{ matrix.mint-database }}
|
|
|
|
tests_redis_cache:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
python-version: ["3.10"]
|
|
poetry-version: ["1.7.1"]
|
|
mint-database: ["./test_data/test_mint", "postgres://cashu:cashu@localhost:5432/cashu"]
|
|
uses: ./.github/workflows/tests_redis_cache.yml
|
|
with:
|
|
os: ${{ matrix.os }}
|
|
python-version: ${{ matrix.python-version }}
|
|
poetry-version: ${{ matrix.poetry-version }}
|
|
mint-database: ${{ matrix.mint-database }}
|
|
|
|
regtest:
|
|
uses: ./.github/workflows/regtest.yml
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.10"]
|
|
poetry-version: ["1.7.1"]
|
|
backend-wallet-class:
|
|
["LndRPCWallet", "LndRestWallet", "CLNRestWallet", "CoreLightningRestWallet", "LNbitsWallet"]
|
|
mint-database: ["./test_data/test_mint", "postgres://cashu:cashu@localhost:5432/cashu"]
|
|
# mint-database: ["./test_data/test_mint"]
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
backend-wallet-class: ${{ matrix.backend-wallet-class }}
|
|
mint-database: ${{ matrix.mint-database }}
|