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
2 changed files with 2 additions and 12 deletions
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…
Add table
Add a link
Reference in a new issue