mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-25 16:20:54 +02:00
tests: only use github for CI
This commit is contained in:
parent
8f76da66e8
commit
8442f277c4
3
.github/workflows/mypy.yml
vendored
3
.github/workflows/mypy.yml
vendored
@ -4,10 +4,11 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: jpetrucciani/mypy-check@master
|
- uses: jpetrucciani/mypy-check@master
|
||||||
with:
|
with:
|
||||||
path: 'lnbits'
|
path: lnbits
|
||||||
|
38
.github/workflows/tests.yml
vendored
Normal file
38
.github/workflows/tests.yml
vendored
Normal file
@ -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
|
26
.travis.yml
26
.travis.yml
@ -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
|
|
@ -1,7 +1,7 @@
|
|||||||
LNbits
|
LNbits
|
||||||
======
|
======
|
||||||
|
|
||||||
[![travis-badge]][travis]
|
[![github-actions-badge]][github-actions]
|
||||||
[![codecov-badge]][codecov]
|
[![codecov-badge]][codecov]
|
||||||
[![license-badge]](LICENSE)
|
[![license-badge]](LICENSE)
|
||||||
|
|
||||||
@ -82,8 +82,8 @@ If you like this project and might even use or extend it, why not send some tip
|
|||||||
https://paywall.link/to/f4e4e
|
https://paywall.link/to/f4e4e
|
||||||
|
|
||||||
|
|
||||||
[travis]: https://travis-ci.com/lnbits/lnbits?branch=master
|
[github-actions]: https://github.com/lnbits/lnbits/actions
|
||||||
[travis-badge]: https://api.travis-ci.com/lnbits/lnbits.svg?branch=master
|
[github-actions-badge]: https://github.com/lnbits/lnbits/workflows/test%20suite/badge.svg
|
||||||
[codecov]: https://codecov.io/gh/lnbits/lnbits
|
[codecov]: https://codecov.io/gh/lnbits/lnbits
|
||||||
[codecov-badge]: https://codecov.io/gh/lnbits/lnbits/branch/master/graph/badge.svg
|
[codecov-badge]: https://codecov.io/gh/lnbits/lnbits/branch/master/graph/badge.svg
|
||||||
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
|
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user