Skip to content

Commit 503ac5b

Browse files
committed
fix: docker build
1 parent 0d7c7b2 commit 503ac5b

3 files changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ jobs:
1616

1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
20+
with:
21+
submodules: recursive
2022

2123
- name: Set up Docker Buildx
2224
uses: docker/setup-buildx-action@v3
2325

2426
- name: Build Docker image
25-
uses: docker/build-push-action@v5
27+
uses: docker/build-push-action@v6
2628
with:
2729
context: .
2830
file: ./Dockerfile
@@ -34,5 +36,8 @@ jobs:
3436

3537
- name: Run tests in Docker container
3638
run: |
37-
docker run --rm -v ${{ github.workspace }}/test:/test python-mapnik:latest \
38-
sh -c "uv pip install pytest pytest-cov && uv run pytest /test/python_tests -v"
39+
docker run --rm \
40+
-v ${{ github.workspace }}:/workspace \
41+
-w /workspace/test/python_tests \
42+
python-mapnik:latest \
43+
sh -c "uv sync --extra test && uv run pytest . -v"

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929

3030
steps:
3131
- name: Checkout code
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v6
33+
with:
34+
submodules: recursive
3335

3436
- name: Cache uv downloads/builds
3537
uses: actions/cache@v5
@@ -80,7 +82,7 @@ jobs:
8082
retention-days: 7
8183

8284
- name: Create GitHub Release
83-
uses: softprops/action-gh-release@v1
85+
uses: softprops/action-gh-release@v2
8486
if: github.event_name == 'push'
8587
with:
8688
tag_name: ${{ steps.version.outputs.version }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2727
with:
2828
submodules: recursive
2929

@@ -93,7 +93,7 @@ jobs:
9393
comment_mode: off
9494

9595
- name: Upload coverage to Codecov
96-
uses: codecov/codecov-action@v4
96+
uses: codecov/codecov-action@v5
9797
if: always()
9898
with:
9999
files: ./coverage.xml

0 commit comments

Comments
 (0)