Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit38d9d55

Browse files
Check collectstatic (python#2554)
* add a github action check to ensure collectstatic runs* install prod reqs* fallback to .python-version* explicitly set python-version-file---------Co-authored-by: Jacob Coffee <jacob@z7x.org>
1 parent68fa4c1 commit38d9d55

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

‎.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
sudo dpkg -i pandoc-2.17.1.1-1-amd64.deb
3232
-uses:actions/setup-python@v5
3333
with:
34-
python-version:3.12.6
34+
python-version-file:'.python-version'
3535
-name:Cache Python dependencies
3636
uses:actions/cache@v4
3737
env:

‎.github/workflows/static.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp