cmsmanage/.gitea/workflows/test.yml
Renovate Bot 037de8d8fa
All checks were successful
Ruff / ruff (push) Successful in 39s
Ruff / ruff (pull_request) Successful in 45s
Test / test (pull_request) Successful in 4m14s
Test / test (push) Successful in 4m19s
chore(deps): update postgres docker tag to v17
2024-09-30 17:00:58 +00:00

44 lines
1.1 KiB
YAML

name: Test
on: [push, pull_request]
env:
DJANGO_CONFIGURATION: CI
jobs:
test:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_PASSWORD: whatever
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
cache: true
python-version: ~3.11
token: ""
- name: Install apt dependencies
run: >-
sudo apt-get update &&
sudo apt-get -y install build-essential python3-dev libldap2-dev libsasl2-dev
- name: Install python dependencies
run: pdm sync -d -G dev
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
run_install: |
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Build JS assets
run: pnpm run build
- name: Run tests
run: pdm run -v ./manage.py test