100 lines
2.5 KiB
YAML
100 lines
2.5 KiB
YAML
name: LNbits CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
pull_request:
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
uses: ./.github/workflows/lint.yml
|
|
|
|
test-api:
|
|
needs: [ lint ]
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
db-url: ["", "postgres://lnbits:lnbits@0.0.0.0:5432/lnbits"]
|
|
uses: ./.github/workflows/tests.yml
|
|
with:
|
|
custom-pytest: "uv run pytest tests/api"
|
|
python-version: ${{ matrix.python-version }}
|
|
db-url: ${{ matrix.db-url }}
|
|
secrets:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
test-wallets:
|
|
needs: [ lint ]
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
db-url: ["", "postgres://lnbits:lnbits@0.0.0.0:5432/lnbits"]
|
|
uses: ./.github/workflows/tests.yml
|
|
with:
|
|
custom-pytest: "uv run pytest tests/wallets"
|
|
python-version: ${{ matrix.python-version }}
|
|
db-url: ${{ matrix.db-url }}
|
|
secrets:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
test-unit:
|
|
needs: [ lint ]
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
db-url: ["", "postgres://lnbits:lnbits@0.0.0.0:5432/lnbits"]
|
|
uses: ./.github/workflows/tests.yml
|
|
with:
|
|
custom-pytest: "uv run pytest tests/unit"
|
|
python-version: ${{ matrix.python-version }}
|
|
db-url: ${{ matrix.db-url }}
|
|
secrets:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
migration:
|
|
needs: [ lint ]
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
uses: ./.github/workflows/migration.yml
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
openapi:
|
|
needs: [ lint ]
|
|
uses: ./.github/workflows/make.yml
|
|
with:
|
|
make: openapi
|
|
|
|
regtest:
|
|
needs: [ lint ]
|
|
uses: ./.github/workflows/regtest.yml
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10"]
|
|
backend-wallet-class:
|
|
- BoltzWallet
|
|
- LndRestWallet
|
|
- LndWallet
|
|
- CoreLightningWallet
|
|
- CoreLightningRestWallet
|
|
- LNbitsWallet
|
|
- EclairWallet
|
|
with:
|
|
custom-pytest: "uv run pytest tests/regtest"
|
|
python-version: ${{ matrix.python-version }}
|
|
backend-wallet-class: ${{ matrix.backend-wallet-class }}
|
|
secrets:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
jmeter:
|
|
needs: [ lint ]
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10"]
|
|
uses: ./.github/workflows/jmeter.yml
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|