mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-01-18 21:32:38 +01: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 }}
|
||||
|
||||
jmeter:
|
||||
needs: [ lint ]
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.9"]
|
||||
|
13
.github/workflows/jmeter.yml
vendored
13
.github/workflows/jmeter.yml
vendored
@ -20,25 +20,15 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ inputs.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
- uses: ./.github/actions/prepare
|
||||
with:
|
||||
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
|
||||
run: |
|
||||
mkdir logs
|
||||
mkdir reports
|
||||
|
||||
- name: install packages
|
||||
run: poetry install
|
||||
|
||||
- name: run LNbits
|
||||
env:
|
||||
LNBITS_ADMIN_UI: true
|
||||
@ -48,7 +38,6 @@ jobs:
|
||||
poetry run lnbits > logs/lnbits.log &
|
||||
sleep 5
|
||||
|
||||
|
||||
- name: install jmeter
|
||||
run: |
|
||||
java -version
|
||||
|
Loading…
Reference in New Issue
Block a user