Skip to content

Commit 504adbb

Browse files
authored
Merge pull request #752 from liangliangyy/dev
fix ci
2 parents b3c5d4c + 1fca149 commit 504adbb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/django.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
- '**/*.md'
1010
- '**/*.css'
1111
- '**/*.js'
12-
- '**/*.yml'
1312
pull_request:
1413
branches:
1514
- master
@@ -18,7 +17,6 @@ on:
1817
- '**/*.md'
1918
- '**/*.css'
2019
- '**/*.js'
21-
- '**/*.yml'
2220

2321
jobs:
2422
build-normal:
@@ -90,9 +88,11 @@ jobs:
9088
sudo sysctl -w vm.max_map_count=262144
9189
9290
- uses: miyataka/elasticsearch-github-actions@1
91+
9392
with:
9493
stack-version: '7.12.1'
95-
plugins: 'https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.12.1/elasticsearch-analysis-ik-7.12.1.zip'
94+
plugins: 'https://release.infinilabs.com/analysis-ik/stable/elasticsearch-analysis-ik-7.12.1.zip'
95+
9696

9797
- uses: actions/checkout@v3
9898
- name: Set up Python ${{ matrix.python-version }}

blog/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def check_pagination(self, p, type, value):
162162
def test_image(self):
163163
import requests
164164
rsp = requests.get(
165-
'https://www.python.org/static/img/python-logo@2x.png')
165+
'https://www.python.org/static/img/python-logo.png')
166166
imagepath = os.path.join(settings.BASE_DIR, 'python.png')
167167
with open(imagepath, 'wb') as file:
168168
file.write(rsp.content)
@@ -180,7 +180,7 @@ def test_image(self):
180180
from djangoblog.utils import save_user_avatar, send_email
181181
send_email(['qq@qq.com'], 'testTitle', 'testContent')
182182
save_user_avatar(
183-
'https://www.python.org/static/img/python-logo@2x.png')
183+
'https://www.python.org/static/img/python-logo.png')
184184

185185
def test_errorpage(self):
186186
rsp = self.client.get('/eee')

0 commit comments

Comments
 (0)