-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.06 KB
/
test.yml
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
39
40
41
name: Test
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: pip
cache-dependency-path: pyproject.toml
- name: Set up nodejs 20.13
uses: actions/setup-node@v4
with:
node-version: 20.13
cache: npm
cache-dependency-path: package-lock.json
- name: Install python dependencies
run: pip install -r requirements.txt
- name: Install nodejs dependencies
run: npm install
- name: Check formatting
run: ruff format --check server
- name: Lint
run: ruff check server
- name: Check types
run: npx pyright
- name: Run tests
run: python manage.py test
env:
CELERY_ALWAYS_EAGER: "true"
SECRET_KEY: "test"
BASE_URL: "https://example.com"