mirror of https://github.com/lukechilds/lnbits.git
4 changed files with 43 additions and 30 deletions
@ -0,0 +1,38 @@ |
|||||
|
name: test suite |
||||
|
|
||||
|
on: [push, pull_request] |
||||
|
|
||||
|
jobs: |
||||
|
build: |
||||
|
|
||||
|
runs-on: ubuntu-latest |
||||
|
strategy: |
||||
|
matrix: |
||||
|
python-version: [3.6, 3.7, 3.8] |
||||
|
|
||||
|
steps: |
||||
|
- uses: actions/checkout@v2 |
||||
|
- name: Set up Python ${{ matrix.python-version }} |
||||
|
uses: actions/setup-python@v1 |
||||
|
with: |
||||
|
python-version: ${{ matrix.python-version }} |
||||
|
- name: Install dependencies |
||||
|
run: | |
||||
|
python -m pip install --upgrade pip |
||||
|
pip install -r requirements.txt |
||||
|
- name: Test with pytest |
||||
|
env: |
||||
|
LNBITS_BACKEND_WALLET_CLASS: LNPayWallet |
||||
|
LNBITS_FORCE_HTTPS: 0 |
||||
|
LNPAY_API_ENDPOINT: https://lnpay.co/v1/ |
||||
|
LNPAY_API_KEY: sak_gG5pSFZhFgOLHm26a8hcWvXKt98yd |
||||
|
LNPAY_ADMIN_KEY: waka_HqWfOoNE0TPqmQHSYErbF4n9 |
||||
|
LNPAY_INVOICE_KEY: waki_ZqFEbhrTyopuPlOZButZUw |
||||
|
LNPAY_READ_KEY: wakr_6IyTaNrvSeu3jbojSWt4ou6h |
||||
|
run: | |
||||
|
pip install pytest pytest-cov |
||||
|
pytest --cov=lnbits --cov-report=xml |
||||
|
- name: Upload coverage to Codecov |
||||
|
uses: codecov/codecov-action@v1 |
||||
|
with: |
||||
|
file: ./coverage.xml |
@ -1,26 +0,0 @@ |
|||||
language: python |
|
||||
|
|
||||
python: |
|
||||
- "3.6" |
|
||||
- "3.7" |
|
||||
- "3.8" |
|
||||
|
|
||||
env: |
|
||||
global: |
|
||||
- LNBITS_BACKEND_WALLET_CLASS=LNPayWallet |
|
||||
- LNBITS_FORCE_HTTPS=0 |
|
||||
- LNPAY_API_ENDPOINT=https://lnpay.co/v1/ |
|
||||
- LNPAY_API_KEY=sak_gG5pSFZhFgOLHm26a8hcWvXKt98yd |
|
||||
- LNPAY_ADMIN_KEY=waka_HqWfOoNE0TPqmQHSYErbF4n9 |
|
||||
- LNPAY_INVOICE_KEY=waki_ZqFEbhrTyopuPlOZButZUw |
|
||||
- LNPAY_READ_KEY=wakr_6IyTaNrvSeu3jbojSWt4ou6h |
|
||||
|
|
||||
install: |
|
||||
- pip install -r requirements.txt |
|
||||
- pip install pytest pytest-cov codecov |
|
||||
|
|
||||
script: |
|
||||
- pytest --cov=lnbits |
|
||||
|
|
||||
after_success: |
|
||||
- codecov |
|
Loading…
Reference in new issue