From 1fca14950c9106b5eb2a1ddb1e03b856b185773e Mon Sep 17 00:00:00 2001 From: liangliangyy Date: Wed, 8 Jan 2025 20:11:18 +0800 Subject: [PATCH] fix ci --- .github/workflows/django.yml | 6 +++--- blog/tests.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index bf23242..10fb202 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -9,7 +9,6 @@ on: - '**/*.md' - '**/*.css' - '**/*.js' - - '**/*.yml' pull_request: branches: - master @@ -18,7 +17,6 @@ on: - '**/*.md' - '**/*.css' - '**/*.js' - - '**/*.yml' jobs: build-normal: @@ -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 }} diff --git a/blog/tests.py b/blog/tests.py index f6bfac0..ee13505 100644 --- a/blog/tests.py +++ b/blog/tests.py @@ -162,7 +162,7 @@ class ArticleTest(TestCase): 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) @@ -180,7 +180,7 @@ class ArticleTest(TestCase): from djangoblog.utils import save_user_avatar, send_email send_email(['qq@qq.com'], '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')