Skip to content

Commit c3d3ebd

Browse files
committed
fix: font location
1 parent af921da commit c3d3ebd

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/run-tests.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,25 @@ jobs:
1616
- uses: actions/checkout@v3
1717
- name: Set up Docker
1818
uses: docker/setup-docker-action@v4
19+
20+
- name: Install Docker Buildx
21+
run: |
22+
docker buildx install
23+
docker buildx create --use
24+
25+
- name: Cache Docker layers
26+
uses: actions/cache@v3
27+
with:
28+
path: /tmp/.buildx-cache
29+
key: ${{ runner.os }}-docker-${{ github.sha }}
30+
restore-keys: |
31+
${{ runner.os }}-docker-
32+
1933
- name: Build Docker image
2034
run: |
21-
docker build -t test-image .
35+
docker build -t test-image --cache-from type=local,dest=/tmp/.buildx-cache --cache-to type=local,dest=/tmp/.buildx-cache .
36+
2237
2338
- name: Run tests in Docker
2439
run: |
25-
docker run -rm test-image python -m pytest -v
40+
docker run test-image sh -c "python -m pip install pytest && python -m pytest -v"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM python:3.10.13-slim-bullseye
22

33
ENV DEBIAN_FRONTEND=noninteractive
44

5-
COPY ./fonts/sarasa-mono-sc-regular.ttf /usr/share/fonts/
5+
COPY ./data/fonts/sarasa-mono-sc-regular.ttf /usr/share/fonts/
66

77
RUN apt-get update && \
88
apt install --no-install-recommends xvfb binutils build-essential qtbase5-dev wkhtmltopdf ffmpeg dbus -yq && \

0 commit comments

Comments
 (0)