Skip to content

Commit

Permalink
pypy test
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseklm committed Aug 3, 2024
1 parent f16d709 commit 41eed92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
schedule:
- cron: '19 5 * * *'
push:
branches: [ "master" ]
branches: [ "master", "pypy" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM python:3.12-alpine
FROM pypy:3.10-slim

WORKDIR /usr/src/app

COPY . .

RUN apk --no-cache add --virtual build-deps git build-base && \
pip install --no-cache-dir --prefer-binary -r requirements.txt && \
apk del build-deps
RUN pip install --no-cache-dir --prefer-binary -r requirements.txt

CMD [ "python", "./main.py" ]
CMD [ "pypy", "./sungrowmodbus2mqtt.py" ]
File renamed without changes.

0 comments on commit 41eed92

Please sign in to comment.