[CI] use specialized image for ruff, run tests in their own step
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
This commit is contained in:
parent
05f39708b2
commit
21648db283
1 changed files with 7 additions and 4 deletions
|
@ -3,16 +3,19 @@ when:
|
||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint-and-test
|
- name: lint
|
||||||
|
image: pipelinecomponents/ruff
|
||||||
|
commands:
|
||||||
|
- ruff check src
|
||||||
|
|
||||||
|
- name: test
|
||||||
image: python:3.13-slim
|
image: python:3.13-slim
|
||||||
environment:
|
environment:
|
||||||
PYTHONDEVMODE: 1
|
PYTHONDEVMODE: 1
|
||||||
DJANGO_SETTINGS_MODULE: dx.settings
|
DJANGO_SETTINGS_MODULE: dx.settings
|
||||||
DJANGO_CONFIGURATION: Dev
|
DJANGO_CONFIGURATION: Dev
|
||||||
commands:
|
commands:
|
||||||
- python -m venv venv
|
- python -m venv --upgrade-deps --without-scm-ignore-files venv
|
||||||
- /bin/bash -c "source venv/bin/activate"
|
- /bin/bash -c "source venv/bin/activate"
|
||||||
- python -m pip install --upgrade pip
|
|
||||||
- python -m pip install -r requirements/test.txt
|
- python -m pip install -r requirements/test.txt
|
||||||
- ruff check src
|
|
||||||
- python -m pytest
|
- python -m pytest
|
||||||
|
|
Loading…
Reference in a new issue