File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM python:3.10.13-slim-bullseye
22
33ENV 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
77RUN apt-get update && \
88 apt install --no-install-recommends xvfb binutils build-essential qtbase5-dev wkhtmltopdf ffmpeg dbus -yq && \
You can’t perform that action at this time.
0 commit comments