Skip to content

Commit

Permalink
Merge pull request #752 from liangliangyy/dev
Browse files Browse the repository at this point in the history
fix ci
  • Loading branch information
liangliangyy authored Jan 8, 2025
2 parents b3c5d4c + 1fca149 commit 504adbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- '**/*.md'
- '**/*.css'
- '**/*.js'
- '**/*.yml'
pull_request:
branches:
- master
Expand All @@ -18,7 +17,6 @@ on:
- '**/*.md'
- '**/*.css'
- '**/*.js'
- '**/*.yml'

jobs:
build-normal:
Expand Down Expand Up @@ -90,9 +88,11 @@ jobs:
sudo sysctl -w vm.max_map_count=262144
- uses: miyataka/elasticsearch-github-actions@1

with:
stack-version: '7.12.1'
plugins: 'https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.12.1/elasticsearch-analysis-ik-7.12.1.zip'
plugins: 'https://release.infinilabs.com/analysis-ik/stable/elasticsearch-analysis-ik-7.12.1.zip'


- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions blog/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def check_pagination(self, p, type, value):
def test_image(self):
import requests
rsp = requests.get(
'https://www.python.org/static/img/python-logo@2x.png')
'https://www.python.org/static/img/python-logo.png')
imagepath = os.path.join(settings.BASE_DIR, 'python.png')
with open(imagepath, 'wb') as file:
file.write(rsp.content)
Expand All @@ -180,7 +180,7 @@ def test_image(self):
from djangoblog.utils import save_user_avatar, send_email
send_email(['[email protected]'], 'testTitle', 'testContent')
save_user_avatar(
'https://www.python.org/static/img/python-logo@2x.png')
'https://www.python.org/static/img/python-logo.png')

def test_errorpage(self):
rsp = self.client.get('/eee')
Expand Down

0 comments on commit 504adbb

Please sign in to comment.