cmsmanage/.gitea/workflows/test.yml
Renovate Bot 4196687950
Some checks failed
Ruff / ruff (push) Successful in 46s
Ruff / ruff (pull_request) Successful in 1m17s
Test / test (pull_request) Failing after 10m54s
Test / test (push) Failing after 12m19s
chore(deps): update mariadb docker tag to v11
2024-08-17 04:46:10 +00:00

53 lines
1.4 KiB
YAML

name: Test
on: [push, pull_request]
env:
DJANGO_CONFIGURATION: CI
jobs:
test:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
services:
mariadb:
# TODO: this is pinned to avoid what apears to be a bug with
# MariaDB >= 10.11.9, and collation issues with 11.x.x
image: mariadb:11.5.2
env:
MARIADB_ROOT_PASSWORD: whatever
healthcheck:
test:
[
"CMD",
"healthcheck.sh",
"--su-mysql",
"--connect",
"--innodb_initialized",
]
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 mariadb-client
- 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