~linuxgoose/bocpress

ref: 089af2cd13ff5b43219fd79e2cce1ead7df9c25f bocpress/.build.yml -rw-r--r-- 758 bytes
089af2cdJordan Robinson add all_tags lists to templates and postmanager functions to get all unique tags for posts and blog setting to show/hide tags in posts list 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
image: ubuntu/24.04
packages:
  - curl
  - postgresql
tasks:
  - test: |
      curl -LsSf https://astral.sh/uv/0.8.8/install.sh | sh
      ~/.local/bin/uv run python -V
      sudo -u postgres psql -U postgres -d postgres -c "ALTER USER postgres WITH PASSWORD 'postgres';"
      cd mataroa/
      export DEBUG=1
      export SECRET_KEY='thisisthesecretkey'
      export DATABASE_URL='postgres://postgres:postgres@localhost:5432/postgres'
      ~/.local/bin/uv run manage.py collectstatic --noinput
      ~/.local/bin/uv run manage.py test
  - lint: |
      curl -LsSf https://astral.sh/uv/0.8.8/install.sh | sh
      ~/.local/bin/uv run python -V
      cd mataroa/
      ~/.local/bin/uv run ruff check
      ~/.local/bin/uv run djade main/templates/**/*.html