File tree 2 files changed +30
-1
lines changed
2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 31
31
sudo dpkg -i pandoc-2.17.1.1-1-amd64.deb
32
32
- uses : actions/setup-python@v5
33
33
with :
34
- python-version : 3.12.6
34
+ python-version-file : ' .python-version '
35
35
- name : Cache Python dependencies
36
36
uses : actions/cache@v4
37
37
env :
Original file line number Diff line number Diff line change
1
+ name : Check collectstatic
2
+ on : [push, pull_request]
3
+ jobs :
4
+ test :
5
+ runs-on : ubuntu-latest
6
+ steps :
7
+ - name : Check out repository
8
+ uses : actions/checkout@v4
9
+ - uses : actions/setup-python@v5
10
+ with :
11
+ python-version-file : ' .python-version'
12
+ - name : Cache Python dependencies
13
+ uses : actions/cache@v4
14
+ env :
15
+ cache-name : pythondotorg-cache-pip
16
+ with :
17
+ path : ~/.cache/pip
18
+ key : ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('requirements.txt', '*-requirements.txt') }}
19
+ restore-keys : |
20
+ ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-
21
+ ${{ runner.os }}-${{ github.job }}-
22
+ ${{ runner.os }}-
23
+ - name : Install Python dependencies
24
+ run : |
25
+ pip install -U pip setuptools wheel
26
+ pip install -r requirements.txt -r prod-requirements.txt
27
+ - name : Run Tests
28
+ run : |
29
+ DJANGO_SETTINGS_MODULE=pydotorg.settings.static python manage.py collectstatic --noinput
You can’t perform that action at this time.
0 commit comments