~linuxgoose/bocpress

ref: 1240aa09969f0449c2cd2cc6e0643c1723d0afeb bocpress/.build.yml -rw-r--r-- 758 bytes
1240aa09Jordan Robinson update wording 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