ci: run jmeter only if linting passes to save resources (#2366)

also uses `prepare` action to initialize python env
This commit is contained in:
dni ⚡ 2024-03-26 20:27:12 +01:00 committed by GitHub
parent 25c6ee40f7
commit 0b22c41d55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 12 deletions

View File

@ -56,6 +56,7 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jmeter:
needs: [ lint ]
strategy:
matrix:
python-version: ["3.9"]

View File

@ -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