File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 1
- name : Tests
1
+ name : Django Tests
2
2
3
3
on :
4
4
workflow_call :
5
5
workflow_dispatch :
6
6
push :
7
+ branches :
8
+ - main
7
9
pull_request :
10
+ branches :
11
+ - main
8
12
9
13
jobs :
10
- run- tests :
11
- name : Django tests
14
+ tests :
15
+ name : Django Tests
12
16
runs-on : ubuntu-latest
13
17
env :
14
18
DATABASE_URL : postgres://postgres:postgres@localhost:5432/postgres
15
- PYTHONPATH : ${{ github.workspace }}
16
- BASE_DIR : ${{ github.workspace }}/reportdb
17
19
18
20
steps :
19
21
- name : Checkout source
20
- uses : actions/checkout@v3
22
+ uses : actions/checkout@v4
21
23
22
- - name : Set up Python 3.12
23
- uses : actions/setup-python@v4
24
- with :
25
- python-version : 3.12
26
- cache : ' pip'
27
- cache-dependency-path : requirements.txt
24
+ - name : Install uv
25
+ uses : astral-sh/setup-uv@v5
28
26
29
27
- name : Install dependencies
30
28
run : |
31
- pip install -r requirements.txt
29
+ uv sync --frozen
32
30
33
31
- name : Run Django tests
34
32
working-directory : ${{ env.BASE_DIR }}
35
33
run : |
36
- python manage.py test
34
+ uv run reportdb/ manage.py test
37
35
38
36
services :
39
37
postgres :
You can’t perform that action at this time.
0 commit comments