Skip to content

Commit 5321162

Browse files
authored
Fix some tests (#53)
1 parent 50cf80f commit 5321162

File tree

8 files changed

+23
-34
lines changed

8 files changed

+23
-34
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ on:
44
push:
55
branches:
66
- main
7-
schedule:
8-
- cron: "0 0 * * *"
97
jobs:
108
lint:
119
runs-on: ubuntu-latest
1210
steps:
13-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1412
- name: Set up Python
15-
uses: actions/setup-python@v4
16-
with:
17-
python-version: "3.11"
13+
uses: actions/setup-python@v5
1814
- name: Install tox
1915
run: |
2016
pip install --upgrade pip
@@ -41,11 +37,9 @@ jobs:
4137
ports:
4238
- 9000:9000
4339
steps:
44-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4541
- name: Set up Python
46-
uses: actions/setup-python@v4
47-
with:
48-
python-version: "3.11"
42+
uses: actions/setup-python@v5
4943
- name: Install tox
5044
run: |
5145
pip install --upgrade pip
@@ -65,7 +59,7 @@ jobs:
6559
DJANGO_MINIO_STORAGE_SECRET_KEY: minioSecretKey
6660
DJANGO_STORAGE_BUCKET_NAME: django-storage
6761
- name: Upload model graphs
68-
uses: actions/upload-artifact@v2
62+
uses: actions/upload-artifact@v4
6963
with:
7064
name: graphs
7165
path: .tox/graphs/*.png
@@ -88,11 +82,9 @@ jobs:
8882
ports:
8983
- 9000:9000
9084
steps:
91-
- uses: actions/checkout@v3
85+
- uses: actions/checkout@v4
9286
- name: Set up Python
93-
uses: actions/setup-python@v4
94-
with:
95-
python-version: "3.11"
87+
uses: actions/setup-python@v5
9688
- name: Install tox
9789
run: |
9890
pip install --upgrade pip
@@ -107,23 +99,21 @@ jobs:
10799
DJANGO_MINIO_STORAGE_SECRET_KEY: minioSecretKey
108100
DJANGO_STORAGE_BUCKET_NAME: django-storage
109101
- name: Stash coverage
110-
uses: actions/upload-artifact@v2
102+
uses: actions/upload-artifact@v4
111103
with:
112104
name: .coverage
113105
path: project/coverage.xml
114-
- uses: codecov/codecov-action@v2
106+
- uses: codecov/codecov-action@v5
115107
with:
116108
token: ${{ secrets.CODECOV_TOKEN }}
117109
files: project/coverage.xml
118110
verbose: true
119111
test-demo:
120112
runs-on: ubuntu-latest
121113
steps:
122-
- uses: actions/checkout@v3
114+
- uses: actions/checkout@v4
123115
- name: Set up Python
124-
uses: actions/setup-python@v4
125-
with:
126-
python-version: "3.11"
116+
uses: actions/setup-python@v5
127117
- name: Install Dependencies
128118
run: |
129119
pip install --upgrade pip
@@ -139,11 +129,11 @@ jobs:
139129
DJANGO_SETTINGS_MODULE: myimages.settings
140130
DJANGO_DEBUG: true
141131
- name: Stash coverage
142-
uses: actions/upload-artifact@v2
132+
uses: actions/upload-artifact@v4
143133
with:
144134
name: .coverage
145135
path: demo/coverage.xml
146-
- uses: codecov/codecov-action@v2
136+
- uses: codecov/codecov-action@v5
147137
with:
148138
token: ${{ secrets.CODECOV_TOKEN }}
149139
files: demo/coverage.xml

.github/workflows/docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository )
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121
- name: Log into the Container registry
22-
uses: docker/login-action@v1
22+
uses: docker/login-action@v3
2323
with:
2424
registry: ${{ env.REGISTRY }}
2525
username: token
@@ -28,11 +28,11 @@ jobs:
2828
# Build and publish image with all sources
2929
- name: Extract metadata for the Docker image
3030
id: meta
31-
uses: docker/metadata-action@v3
31+
uses: docker/metadata-action@v5
3232
with:
3333
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-demo
3434
- name: Build and push the Docker image
35-
uses: docker/build-push-action@v2
35+
uses: docker/build-push-action@v6
3636
with:
3737
context: .
3838
file: demo.Dockerfile

.github/workflows/wheel.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ jobs:
1212
name: Publish Wheels
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Set up Python
17-
uses: actions/setup-python@v2
18-
with:
19-
python-version: "3.11"
17+
uses: actions/setup-python@v5
2018
- name: Build Weel
2119
run: |
2220
pip install wheel twine

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ docs/_build/
8383
# PyBuilder
8484
target/
8585

86-
# pyenv
87-
.python-version
88-
8986
# pipenv
9087
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
9188
# However, in case of collaboration, if having platform-specific dependencies or dependencies

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.11

demo/myimages/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
For the full list of settings and their values, see
1010
https://docs.djangoproject.com/en/4.0/ref/settings/
1111
"""
12+
1213
import os
1314
from pathlib import Path
1415

demo/myimages/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
1616
"""
17+
1718
from django.contrib import admin
1819
from django.urls import include, path
1920
from django.views.generic.base import RedirectView

django_large_image/tilesource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""large-image utilities."""
2+
23
import os
34
import pathlib
45
import tempfile

0 commit comments

Comments
 (0)