-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 908 Bytes
/
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
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: Install dependencies
run: pip install -r requirements.txt
- name: Check formatting
run: ruff format --check server
- name: Lint
run: ruff check server
- name: Check types
run: mypy server
env:
SECRET_KEY: "test"
BASE_URL: "https://example.com"
- name: Run tests
run: python manage.py test
env:
CELERY_ALWAYS_EAGER: "true"
SECRET_KEY: "test"
BASE_URL: "https://example.com"