mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-25 04:24:21 +01:00
* auth server * cleaning up * auth ledger class * class variables -> instance variables * annotations * add models and api route * custom amount and api prefix * add auth db * blind auth token working * jwt working * clean up * JWT works * using openid connect server * use oauth server with password flow * new realm * add keycloak docker * hopefully not garbage * auth works * auth kinda working * fix cli * auth works for send and receive * pass auth_db to Wallet * auth in info * refactor * fix supported * cache mint info * fix settings and endpoints * add description to .env.example * track changes for openid connect client * store mint in db * store credentials * clean up v1_api.py * load mint info into auth wallet * fix first login * authenticate if refresh token fails * clear auth also middleware * use regex * add cli command * pw works * persist keyset amounts * add errors.py * do not start auth server if disabled in config * upadte poetry * disvoery url * fix test * support device code flow * adopt latest spec changes * fix code flow * mint max bat dynamic * mypy ignore * fix test * do not serialize amount in authproof * all auth flows working * fix tests * submodule * refactor * test * dont sleep * test * add wallet auth tests * test differently * test only keycloak for now * fix creds * daemon * fix test * install everything * install jinja * delete wallet for every test * auth: use global rate limiter * test auth rate limit * keycloak hostname * move keycloak test data * reactivate all tests * add readme * load proofs * remove unused code * remove unused code * implement change suggestions by ok300 * add error codes * test errors
75 lines
2.3 KiB
YAML
75 lines
2.3 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.8.5"]
|
|
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.8.5"]
|
|
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 }}
|
|
|
|
tests_keycloak_auth:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
python-version: ["3.10"]
|
|
poetry-version: ["1.8.5"]
|
|
mint-database: ["./test_data/test_mint", "postgres://cashu:cashu@localhost:5432/cashu"]
|
|
uses: ./.github/workflows/tests_keycloak_auth.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.8.5"]
|
|
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 }}
|