fix(deps): update dependency esbuild-plugin-less to v1.3.12 #3241
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
env: | |
NODE_VERSION: "20" | |
jobs: | |
test-python: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:16-alpine | |
env: | |
POSTGRES_USER: ow4user | |
POSTGRES_DB: ow4db | |
POSTGRES_PASSWORD: ow4password | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: 'npm' | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: 'pyproject.toml' | |
- name: Set up uv | |
# Install uv using the standalone installer | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Install node dependencies | |
run: npm ci | |
- name: npm build | |
run: npm run build | |
- name: Python tests | |
env: | |
OW4_DJANGO_STRIPE_PUBLIC_KEY_ARRKOM: ${{ secrets.STRIPE_PUBLIC_KEY_ARRKOM }} | |
OW4_DJANGO_STRIPE_PUBLIC_KEY_PROKOM: ${{ secrets.STRIPE_PUBLIC_KEY_PROKOM }} | |
OW4_DJANGO_STRIPE_PUBLIC_KEY_TRIKOM: ${{ secrets.STRIPE_PUBLIC_KEY_TRIKOM }} | |
OW4_DJANGO_STRIPE_PRIVATE_KEY_ARRKOM: ${{ secrets.STRIPE_PRIVATE_KEY_ARRKOM }} | |
OW4_DJANGO_STRIPE_PRIVATE_KEY_PROKOM: ${{ secrets.STRIPE_PRIVATE_KEY_PROKOM }} | |
OW4_DJANGO_STRIPE_PRIVATE_KEY_TRIKOM: ${{ secrets.STRIPE_PRIVATE_KEY_TRIKOM }} | |
DATABASE_URL: postgres://ow4user:ow4password@localhost:5432/ow4db | |
run: uv run -- pytest --cov=apps --cov-report xml | |
- uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
lint-python: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: 'pyproject.toml' | |
- name: Set up uv | |
# Install uv using the standalone installer | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Format | |
run: uv run -- ruff format --check apps scripts utils onlineweb4 | |
- name: Lint | |
run: uv run -- ruff check apps scripts utils onlineweb4 | |
django-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: 'pyproject.toml' | |
- name: Set up uv | |
# Install uv using the standalone installer | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: Check migrations | |
run: uv run -- ./manage.py makemigrations --check | |
- name: Django check | |
run: uv run -- ./manage.py check |