code quality fixes and cleanup
This commit is contained in:
parent
29b1b17967
commit
2bbbcd4d65
32 changed files with 4943 additions and 1368 deletions
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
|
|
@ -4,7 +4,6 @@ on:
|
|||
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||
|
||||
jobs:
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
@ -23,7 +22,7 @@ jobs:
|
|||
with:
|
||||
token: ${{ secrets.EXT_GITHUB }}
|
||||
repository: lnbits/lnbits-extensions
|
||||
path: './lnbits-extensions'
|
||||
path: "./lnbits-extensions"
|
||||
|
||||
- name: setup git user
|
||||
run: |
|
||||
|
|
|
|||
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -4,7 +4,6 @@ on:
|
|||
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||
|
||||
jobs:
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
@ -23,7 +22,7 @@ jobs:
|
|||
with:
|
||||
token: ${{ secrets.EXT_GITHUB }}
|
||||
repository: lnbits/lnbits-extensions
|
||||
path: './lnbits-extensions'
|
||||
path: "./lnbits-extensions"
|
||||
|
||||
- name: setup git user
|
||||
run: |
|
||||
|
|
|
|||
60
.github/workflows/test.yml
vendored
60
.github/workflows/test.yml
vendored
|
|
@ -4,45 +4,43 @@ on:
|
|||
push:
|
||||
pull_request:
|
||||
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: "3.9"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install poetry
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install poetry
|
||||
|
||||
- name: Run setup script
|
||||
run: |
|
||||
/bin/bash .devcontainer/setup.sh ${{ github.workspace }}
|
||||
- name: Run setup script
|
||||
run: |
|
||||
/bin/bash .devcontainer/setup.sh ${{ github.workspace }}
|
||||
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
cd lnbits
|
||||
poetry_env_path=$(poetry env info --path)
|
||||
source $poetry_env_path/bin/activate
|
||||
cd ..
|
||||
pytest tests/unit/*.py -s
|
||||
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
cd lnbits
|
||||
poetry_env_path=$(poetry env info --path)
|
||||
source $poetry_env_path/bin/activate
|
||||
cd ..
|
||||
pytest tests/unit/*.py -s
|
||||
- name: Setup integration tests
|
||||
run: bash tests/integration/start.sh
|
||||
|
||||
- name: Setup integration tests
|
||||
run: bash tests/integration/start.sh
|
||||
|
||||
- name: Run integration tests
|
||||
run: |
|
||||
cd lnbits
|
||||
poetry_env_path=$(poetry env info --path)
|
||||
source $poetry_env_path/bin/activate
|
||||
cd ..
|
||||
pytest tests/unit/*.py -s
|
||||
- name: Run integration tests
|
||||
run: |
|
||||
cd lnbits
|
||||
poetry_env_path=$(poetry env info --path)
|
||||
source $poetry_env_path/bin/activate
|
||||
cd ..
|
||||
pytest tests/integration/*.py -s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue