-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 957 Bytes
/
Copy pathunit-tests.yaml
File metadata and controls
38 lines (29 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Unit tests
on:
pull_request:
workflow_call:
jobs:
unit-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: 22
cache: 'npm'
- name: Install dependencies
run: |
uv sync
npm ci
- name: Check for missing migrations
run: uv run python ./eodhp_web_presence/manage.py makemigrations --check
- name: Build
run: |
npm run build
uv run python ./eodhp_web_presence/manage.py collectstatic
uv run python ./eodhp_web_presence/manage.py migrate
- name: Run tests
run: uv run pytest ./eodhp_web_presence -vv