@@ -12,57 +12,32 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
- python : ['3.8 ', '3.9 ', '3.10', '3.11 ']
16
- django : ['3.2', ' 4.2']
15
+ python : ['3.10 ', '3.11 ', '3.12 ']
16
+ django : ['4.2']
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v4
19
19
- name : Set up Python ${{ matrix.python }}
20
- uses : actions /setup-python@v1
20
+ uses : astral-sh /setup-uv@v5
21
21
with :
22
22
python-version : ${{ matrix.python }}
23
23
- name : Install Dependencies
24
24
run : |
25
- python -m pip install --upgrade pip
26
- pip install .[files,huey,celery]
27
- pip uninstall django-spirit -y
28
- pip install --upgrade Django==${{ matrix.django }}
29
- pip install --upgrade coveralls
25
+ uv sync --all-extras
26
+ uv pip install --upgrade Django~=${{ matrix.django }}
27
+ - name : Test build
28
+ run : |
29
+ uv build --sdist
30
30
- name : Run Tests
31
31
run : |
32
- python setup.py -q build
33
- python ./spirit/extra/bin/spirit.py startproject project
32
+ uv run ./spirit/extra/bin/spirit.py startproject project
34
33
export PYTHONWARNINGS="default"
35
- coverage run --source=. runtests.py
36
- - name : Submit to coveralls
37
- env :
38
- COVERALLS_FLAG_NAME : run-${{ matrix.python }}-${{ matrix.django }}
39
- COVERALLS_PARALLEL : true
40
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
- run : |
42
- coveralls --service=github
43
- coveralls :
44
- name : Finish Coveralls
45
- needs : test
46
- runs-on : ubuntu-latest
47
- steps :
48
- - uses : actions/checkout@v2
49
- - name : Set up Python 3.11
50
- uses : actions/setup-python@v1
51
- with :
52
- python-version : 3.11
53
- - name : Finished
54
- run : |
55
- python -m pip install --upgrade pip
56
- pip install --upgrade coveralls
57
- coveralls --finish
58
- env :
59
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
+ make test
60
35
test_js :
61
36
name : JS
62
37
runs-on : ubuntu-latest
63
38
strategy :
64
39
matrix :
65
- node : [12 .x]
40
+ node : [22 .x]
66
41
steps :
67
42
- uses : actions/checkout@v2
68
43
- name : Set Up NodeJS ${{ matrix.node }}
@@ -82,23 +57,21 @@ jobs:
82
57
runs-on : ubuntu-latest
83
58
strategy :
84
59
matrix :
85
- python : ['3.11 ']
60
+ python : ['3.10', '3.11', '3.12 ']
86
61
django : ['4.2']
87
62
steps :
88
- - uses : actions/checkout@v2
63
+ - uses : actions/checkout@v4
89
64
- name : Set up Python ${{ matrix.python }}
90
- uses : actions /setup-python@v1
65
+ uses : astral-sh /setup-uv@v5
91
66
with :
92
67
python-version : ${{ matrix.python }}
93
68
- name : Install Dependencies
94
69
run : |
95
- python -m pip install --upgrade pip
96
- pip install .
97
- pip uninstall django-spirit -y
98
- pip install --upgrade Django==${{ matrix.django }}
70
+ uv sync
71
+ uv pip install --upgrade Django~=${{ matrix.django }}
99
72
- name : Run Tests
100
73
run : |
101
- python ./spirit/extra/bin/spirit.py startproject project
74
+ uv run ./spirit/extra/bin/spirit.py startproject project
102
75
export PYTHONWARNINGS="default"
103
76
export ST_UPLOAD_FILE_ENABLED=0
104
77
export ST_INSTALL_HUEY=0
@@ -108,24 +81,53 @@ jobs:
108
81
runs-on : ubuntu-latest
109
82
strategy :
110
83
matrix :
111
- python : ['3.11 ']
84
+ python : ['3.10', '3.11', '3.12 ']
112
85
django : ['4.2']
113
86
steps :
114
- - uses : actions/checkout@v2
87
+ - uses : actions/checkout@v4
115
88
- name : Set up Python ${{ matrix.python }}
116
- uses : actions /setup-python@v1
89
+ uses : astral-sh /setup-uv@v5
117
90
with :
118
91
python-version : ${{ matrix.python }}
119
92
- name : Install Dependencies
120
93
run : |
121
- python -m pip install --upgrade pip
122
- pip install .[huey]
123
- pip uninstall django-spirit -y
124
- pip install --upgrade Django==${{ matrix.django }}
94
+ uv sync --all-extras
95
+ uv pip install --upgrade Django~=${{ matrix.django }}
125
96
- name : Run Tests
126
97
run : |
127
- python ./spirit/extra/bin/spirit.py startproject project
98
+ uv run ./spirit/extra/bin/spirit.py startproject project
128
99
export PYTHONWARNINGS="default"
129
100
export ST_UPLOAD_FILE_ENABLED=0
130
101
export ST_TASK_MANAGER="huey"
131
102
make test
103
+ coverage :
104
+ name : Coverage / Py ${{ matrix.python }} / Django ${{ matrix.django }}
105
+ runs-on : ubuntu-latest
106
+ strategy :
107
+ matrix :
108
+ python : ['3.12']
109
+ django : ['4.2']
110
+ steps :
111
+ - uses : actions/checkout@v4
112
+ - name : Set up Python ${{ matrix.python }}
113
+ uses : astral-sh/setup-uv@v5
114
+ with :
115
+ python-version : ${{ matrix.python }}
116
+ - name : Install Dependencies
117
+ run : |
118
+ uv sync --all-extras
119
+ uv pip install --upgrade Django~=${{ matrix.django }}
120
+ uv pip install --upgrade coveralls
121
+ - name : Run Tests
122
+ run : |
123
+ uv run ./spirit/extra/bin/spirit.py startproject project
124
+ export PYTHONWARNINGS="default"
125
+ uv run coverage run --source=. runtests.py
126
+ - name : Submit to coveralls
127
+ env :
128
+ COVERALLS_FLAG_NAME : run-${{ matrix.python }}-${{ matrix.django }}
129
+ COVERALLS_PARALLEL : true
130
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
131
+ run : |
132
+ uv run coveralls --service=github
133
+ uv run coveralls --finish
0 commit comments