mirror of
https://github.com/lnbits/lnbits.git
synced 2025-05-18 23:40:00 +02:00
ci: run jmeter only if linting passes to save resources (#2366)
also uses `prepare` action to initialize python env
This commit is contained in:
parent
25c6ee40f7
commit
0b22c41d55
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -56,6 +56,7 @@ jobs:
|
|||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
jmeter:
|
jmeter:
|
||||||
|
needs: [ lint ]
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
|
13
.github/workflows/jmeter.yml
vendored
13
.github/workflows/jmeter.yml
vendored
@ -20,25 +20,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python ${{ inputs.python-version }}
|
- uses: ./.github/actions/prepare
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
cache: "pip"
|
|
||||||
|
|
||||||
- name: Set up Poetry ${{ inputs.poetry-version }}
|
|
||||||
uses: abatilo/actions-poetry@v2
|
|
||||||
with:
|
|
||||||
poetry-version: ${{ inputs.poetry-version }}
|
|
||||||
|
|
||||||
- name: create logs and reports dir
|
- name: create logs and reports dir
|
||||||
run: |
|
run: |
|
||||||
mkdir logs
|
mkdir logs
|
||||||
mkdir reports
|
mkdir reports
|
||||||
|
|
||||||
- name: install packages
|
|
||||||
run: poetry install
|
|
||||||
|
|
||||||
- name: run LNbits
|
- name: run LNbits
|
||||||
env:
|
env:
|
||||||
LNBITS_ADMIN_UI: true
|
LNBITS_ADMIN_UI: true
|
||||||
@ -48,7 +38,6 @@ jobs:
|
|||||||
poetry run lnbits > logs/lnbits.log &
|
poetry run lnbits > logs/lnbits.log &
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
|
|
||||||
- name: install jmeter
|
- name: install jmeter
|
||||||
run: |
|
run: |
|
||||||
java -version
|
java -version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user