Vlad Stan
a1ea04acf8
Jmeter take 3 ( #2284 )
...
* chore: add tests
* chore: add reference to jmter job
* chore: add jmeter job
* chore: touch tests
* chorE: disable other workflows
* chore: do not set `LNBITS_ADMIN_UI: true`
* chore: extra log file
* chore: rollback
* chore: testing stuff
* feat: top-up wallet
* chore: clean-up usr
* chore: clean-up user query param
* chore: remove hardcoded usr
* chore: clean-up
* chore: clean-up
* chore: different improvements
* chore: clean-up
* chore: remove hardcoded values
* refactor: extract `init-server` fragment
* chore: move fragment
* feat: use test frgment
* chore: clean-up hardcoded values
* chore: clean-up
* fix: get lnurl working
* chore: re-arange elements
* chore: re-arange elements
* fix: add `lnurlp, withdraw` extensions
* chore: rename file
* fix: login with user id
* refactor: extract init account
* fix: tips wallet
* fix: assertion
* refactor: use fragments; group loops
* chore: re-enable the other CI jobs
* fix: separate wallet for receive
* feat: check receive wallet balance
* feat: increase wait time
2024-03-08 16:40:23 +02:00
dni ⚡
11173e6460
fix: github release missing checkout ( #2264 )
...
actions/checkout was missing so it could not release
2024-02-12 13:00:03 +01:00
dni ⚡
194a527736
fix: regtest use new docker hub address ( #2248 )
...
* fix: regtest use new docker hub address
2024-02-09 08:46:33 +01:00
dni ⚡
a73eb569ae
bug: docker upload workflow ( #2245 )
...
something changed in the docker-build-push action.
added `workflow_dispatch` to be able to manually run those docker releases via github
2024-02-08 11:30:38 +01:00
dni ⚡
55fed49be1
feat: use github release draft ( #2237 )
...
create a draft release on tagging
2024-02-05 12:01:11 +01:00
dni ⚡
43d92ddb51
[FEAT] release / docker ci pipeline ( #1907 )
...
* [FEAT] docker ci pipeline
* add release workflow
* depend on release
* move tag
* remove push to main
* fixup release workflow
* add latest tag on dockerhub
* cleanup
* Update .github/workflows/docker.yml
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
* use latest versions of actions
---------
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2024-01-30 13:28:34 +00:00
Pavol Rusnak
bff44b7097
update nix ci action to use cachix to cache results ( #2170 )
2023-12-19 11:54:14 +01:00
dni ⚡
47bd96246f
chore: update lock file and poetry 1.7.0 in CI ( #2156 )
...
* chore: update lock file and poetry 1.7.0 in CI
* mypy found an issue! :)
---------
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2023-12-06 10:36:10 +01:00
dni ⚡
d0107f7830
ci: workflow to check bundle files ( #2126 )
...
fail if `bundle.min.css` or `bundle.min.js` differes from a `make bundle` output
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
2023-11-28 10:39:21 +01:00
dni ⚡
6f0d911a08
fix: dont release docker image for release candidate ( #2101 )
...
- do not release docker image on `0.11.2-rc1`
- only release on `0.11.x` or `v0.11.x`
- also remove invalid version `0.0.0.0`
2023-11-14 18:59:21 +01:00
dni ⚡
e522a53340
formatting
2023-10-16 15:49:56 +02:00
Pavol Rusnak
c02e0618af
add "nix build" to GitHub CI
...
run only when poetry/flake files change
2023-10-16 15:49:56 +02:00
dni ⚡
c8661ffcf3
feat: improve im workflows runs
...
only run push on main / dev
2023-10-16 11:39:40 +02:00
dni ⚡
f286a91253
bug: check prettier workflows ( #2021 )
...
workflow wasnt failing on wrong formatting
2023-10-09 18:15:44 +02:00
dni ⚡
28e4612559
[FIX] codeql for dev branch ( #1935 )
2023-09-12 10:17:40 +01:00
dni ⚡
62435b3723
[TEST] workflows, added 10s timeout to lncli
subprocess and logging ( #1910 )
...
* [FIX] workflows
testing why workflwos unstable instable
* debug run_command
* add timeout to process run
* log lncli output
* try catch json exception in clnrest
* settle does not return a json
* add 10 minutes timeout to regtests if they ever get stuck
* better subprocess handling
* fix race condition
* test 3
* remove
* run nr 4
* increase waits for race conditions
* revert clnrest
* better fiat amount test
2023-08-30 11:01:32 +01:00
dni ⚡
6efe1a156b
[FEAT] add codecov token ( #1908 )
...
for better coverage reports
2023-08-28 13:49:33 +02:00
dni ⚡
c54f48ee73
[CI] improve on github workflows ( #1889 )
...
* [CI] making a proper github CI workflow
2023-08-24 12:36:37 +02:00
callebtc
3a653630f1
Wallets: add cln-rest ( #1775 )
...
* receive and pay works
* fix linter issues
* import Paymentstatus from core.models
* fix test real payment
* fix get_payment_status check in lnbits
* fix tests?
* simplify
* refactor AsyncClient
* inline import of get_wallet_class
fixes the previous cyclic import
* invoice stream working
* add notes as a reminder to get rid of labels when cln-rest supports payment_hash
* create Payment dummy classmethod
* remove unnecessary fields from dummy
* fixes tests?
* fix model
* fix cln bug (#1814 )
* auth header
* rename cln to corelightning
* add clnrest to admin_ui
* add to clnrest allowed sources
* add allowed sources to .env.example
* allow macaroon files
* add corelightning rest to workflow
* proper env names
* cleanup routine
* log wallet connection errors and fix macaroon clnrest
* print error on connection fails
* clnrest: handle disconnects faster
* fix test use of get_payment_status
* make format
* clnrest: add unhashed_description
* add unhashed_description to test
* description_hash test
* unhashed_description not supported by clnrest
* fix checking_id return in api_payments_create_invoice
* refactor test to use client instead of api_payments
* formatting, some errorlogging
* fix test 1
* fix other tests, paid statuses was missing
* error handling
* revert unnecessary changes (#1854 )
* apply review of motorina0
---------
Co-authored-by: jackstar12 <jkranawetter05@gmail.com>
Co-authored-by: jackstar12 <62219658+jackstar12@users.noreply.github.com>
Co-authored-by: dni ⚡ <office@dnilabs.com>
2023-08-23 08:59:39 +02:00
dni ⚡
eb0b06f98c
[DEV] add ruff for linting and combine linters into one workflow ( #1875 )
...
* remove unused and update black + precommit
* makefile add ruff remove unused
* F541 fix
* complete ruff ignore
* remove unused workflow and combine linters into one
add lnbits/static to ruff ignore
save preview and linelength for later
define target version for black
* ignore upgrades for mypy
* remove flake8
* ignore F401 for __init__ files
* unused pylint comment
* unused noqa
* ignore upgrades for black
* run linting on py3.9 and py3.10
* dont assume python
2023-08-19 07:38:04 +02:00
dni ⚡
c7cf743852
[TEST] run tests.yml on py39 and py310 ( #1882 )
...
i think it is a good idea to test both at least for fakewallet tests.
2023-08-18 09:50:56 +01:00
dni ⚡
963fd5de50
add github workflow for checking openapi ( #1551 )
...
* add github workflow for checking openapi
* verbose errors
* actual fix? remove env_names from BaseSettings class?
* dont kill process in workflow
* poetry version 1.5.1 for openapiu
2023-07-19 12:28:27 +01:00
dni ⚡
213be79aaa
quickfix for failing checks ( #1819 )
...
root package is needed for tests
root package is needed for mypy
removing testfile
2023-07-11 13:25:35 +02:00
dni ⚡
f7cbe74d77
Update poetry to 1.5.1 ( #1804 )
...
* update poetry to 1.5.1 inside workflows
* update lock file to poetry 1.5.1
* test run 1
* test run 2
* run 3
* try different sortorder
* cli should use --no-root
here are the refereneces.
https://python-poetry.org/docs/basic-usage/#installing-dependencies-only
https://pip.pypa.io/en/stable/topics/local-project-installs/#regular-installs
* cache migrations aswell
* test flake
* optimize docker image for regtest building
* playng
* remove test run 1
* remove run 2
* remove run 3
* run 4
* run 6
* run 7
* run 8
* run 9
* run 10
2023-07-11 12:46:40 +02:00
dni ⚡
c48e2329c5
TEST: fix tests for real wallets ( #1761 )
...
* fix tests for real wallets
* change realinvoice provider to lnd-1
* use lnd-3 for tests
* fix eclair tests
* use bullseye in dockerimage
2023-06-15 12:36:28 +02:00
dni ⚡
bb9ef7f88c
FEAT: precommit git hooks, based on fusions #913 ( #1645 )
...
* init commit for precommit
* some reformatting precommit does
2023-05-09 09:41:40 +01:00
dni ⚡
99964ee6ab
formatting did only run on branch main?
2023-04-16 09:16:24 +02:00
dni ⚡
4dd206da2a
good bye venv ( #1569 )
...
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-03-16 16:45:23 +01:00
dni ⚡
bb05703f2b
change prettier and reformat stuff
2023-02-20 11:49:00 +01:00
Pavol Rusnak
b8a5cc60b8
add pyright workflow, unify mypy+flake8+pylint workflows
...
Co-authored-by: dni ⚡ <office@dnilabs.com>
2023-02-06 13:31:42 +01:00
Pavol Rusnak
430698c763
improve workflow stability for flake8 and pylint
...
followup to #1397
2023-01-30 11:46:45 +00:00
Pavol Rusnak
0ff4c13346
add flake8 to CI, skip remaining 4 flake8 issues (will be addressed later)
2023-01-30 11:46:45 +00:00
Pavol Rusnak
9ef4bd8fb9
add pylint workflow after all enabled issues were fixed
2023-01-30 11:46:44 +00:00
dni ⚡
b2a963638d
TEST: update actions setup-python to v4 and checkout to v3, add caching to python ( #1428 )
...
* update actions setup-python to v4 and checkout to v3, add caching to python
* fix ordering of steps for poetry to be cached
* poetry setup ordering
* order in formatting.yml
2023-01-29 11:46:20 +01:00
dni ⚡
5a0b217d63
TEST: LNbits as fundingsource in regtest ( #1402 )
...
* lnbits funding source
* add create_fake_user to workflow
* change quotes in workflow ymal
* not use interactive docker exec
* update tools/create_fake_admin to not use lnbits imports
* formatting
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2023-01-26 10:43:12 +01:00
dni ⚡
36c881c4ce
add eclair fundingsource workflow / test ( #1406 )
2023-01-25 15:07:41 +01:00
dni ⚡
e106ec3e9c
FIX: improve workflow stability ( #1397 )
...
* FIX: improve workflow stability
* just testing
* just testing, nr. 3
2023-01-23 12:57:37 +01:00
dni ⚡
7218057ca2
update lock file and workflows to poetry 1.3.1
2022-12-27 13:20:07 +01:00
callebtc
4bd0372819
deploy: build on minor changes
2022-12-20 10:30:32 +01:00
dni ⚡
552e4a9041
remove unused env in tests
2022-12-07 13:57:08 +01:00
calle
5c09469d61
Revert "Extension: Cashu"
2022-11-27 18:03:20 +01:00
callebtc
7bfd8f3a62
overwrite mock data
2022-11-24 16:08:12 +01:00
calle
1d9be9619f
Update issue templates ( #1087 )
2022-10-26 13:01:02 +02:00
calle
2f1f92f1ee
Update issue templates ( #1086 )
2022-10-26 12:57:53 +02:00
calle
440c4b6966
Update issue templates ( #1085 )
2022-10-26 12:56:15 +02:00
callebtc
89f55e50b1
disable codecov check
2022-10-18 11:49:20 +02:00
Arc
b46c06012d
Revert "make gh workflows only run on pull_request"
2022-10-06 17:51:36 +01:00
dni ⚡
79319faa21
make workflows only run on pull_request
2022-10-06 10:17:21 +02:00
dni ⚡
19b1374d51
fixing tests for new poetry version ^1.2
2022-09-27 17:44:52 +02:00
dni ⚡
8e06d779e7
add dependencies for corelightning and lndgrpc ( #1003 )
...
* add dependencies for corelightning and lndgrpc
* added wrong cln library, 🤦
2022-09-23 16:56:14 +03:00