1
- name : Caselaw CI
1
+ name : LegalDB CI
2
2
3
3
on :
4
4
push :
@@ -17,28 +17,27 @@ jobs:
17
17
# https://devcenter.heroku.com/articles/getting-started-with-python
18
18
# Match version to Heroku app
19
19
# Keep in sync with Dockerfile and Pipfile
20
- - name : Set up Python 3.10
20
+ - name : Set up Python 3.12
21
21
uses : actions/setup-python@v5
22
22
with :
23
- python-version : ' 3.10 '
23
+ python-version : ' 3.12 '
24
24
25
25
- name : Install pipenv
26
26
run : |
27
27
pip install --upgrade pip
28
28
pip install pipenv
29
29
30
30
- name : Install dependencies
31
- run : |
32
- pipenv sync --dev
31
+ # Install _only_ [dev-packages]
32
+ run : pipenv sync --categories dev-packages --system
33
33
34
34
- name : Run Black check
35
- run : |
36
- pipenv run black --check .
35
+ run : black --check .
37
36
38
37
- name : Run Flake8 check
39
38
run : |
40
39
mkdir test-reports
41
- pipenv run flake8 . --output-file test-reports/flake8
40
+ flake8 . --output-file test-reports/flake8
42
41
43
42
- name : Upload flake test results
44
43
uses : actions/upload-artifact@v4
@@ -74,27 +73,26 @@ jobs:
74
73
- name : Check out repository code
75
74
uses : actions/checkout@v4
76
75
77
- # https://devcenter.heroku.com/articles/getting-started-with- python
78
- # Match version to Heroku app
79
- # Keep in sync with Dockerfile and Pipfile
80
- - name : Set up Python 3.10
76
+ # https://devcenter.heroku.com/articles/python-support
77
+ # Match version to Heroku app
78
+ # Keep in sync with Dockerfile and Pipfile
79
+ - name : Set up Python 3.12
81
80
uses : actions/setup-python@v5
82
81
with :
83
- python-version : ' 3.10 '
82
+ python-version : ' 3.12 '
84
83
85
84
- name : Install pipenv
86
85
run : |
87
86
pip install --upgrade pip
88
87
pip install pipenv
89
88
90
89
- name : Install dependencies
91
- run : |
92
- pipenv sync --dev
90
+ run : pipenv sync --dev --system
93
91
94
92
- name : Compile assets
95
93
run : |
96
- pipenv run python manage.py collectstatic --no-input
97
- pipenv run python manage.py compress --force
94
+ python manage.py collectstatic --no-input
95
+ python manage.py compress --force
98
96
99
97
- name : Run tests
100
98
run : pipenv run python manage.py test
0 commit comments