2024-11-21 19:47:14 +01:00
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
branch: main
|
|
|
|
|
|
|
|
steps:
|
2024-11-21 20:30:05 +01:00
|
|
|
- name: lint
|
|
|
|
image: pipelinecomponents/ruff
|
|
|
|
commands:
|
|
|
|
- ruff check src
|
|
|
|
|
|
|
|
- name: test
|
2024-11-21 20:15:31 +01:00
|
|
|
image: python:3.13-slim
|
2024-11-21 20:07:14 +01:00
|
|
|
environment:
|
|
|
|
PYTHONDEVMODE: 1
|
|
|
|
DJANGO_SETTINGS_MODULE: dx.settings
|
|
|
|
DJANGO_CONFIGURATION: Dev
|
2024-11-21 19:47:14 +01:00
|
|
|
commands:
|
2024-11-21 20:45:00 +01:00
|
|
|
# - python -m venv --upgrade-deps --without-scm-ignore-files venv
|
|
|
|
- python -m venv venv
|
2024-11-21 20:07:14 +01:00
|
|
|
- /bin/bash -c "source venv/bin/activate"
|
2024-11-21 20:45:00 +01:00
|
|
|
- python -m pip install --upgrade pip
|
2024-11-21 20:07:14 +01:00
|
|
|
- python -m pip install -r requirements/test.txt
|
2024-11-21 19:47:14 +01:00
|
|
|
- python -m pytest
|