@@ -13,12 +13,18 @@ jobs:
1313 matrix :
1414 platform :
1515 - linux/amd64
16- - linux/arm64
16+ # - linux/arm64
1717 runs-on : ${{ matrix.platform == 'linux/amd64' && 'ubuntu-24.04' || matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' }}
1818 name : build ${{ matrix.platform }}
1919 outputs :
2020 tag : ${{ steps.envvars.outputs.tag }}
2121 steps :
22+ - name : " node-cleanup"
23+ run : |
24+ sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
25+ sudo docker image prune --all --force
26+ sudo docker builder prune -a
27+
2228 - name : checkout
2329 uses : actions/checkout@v6.0.1
2430
@@ -53,13 +59,13 @@ jobs:
5359 tags : ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}
5460 outputs : type=docker,push-by-digest=true,name-canonical=true,push=true
5561
56- # - name: Run tests
57- # if: github.event_name == 'pull_request'
58- # shell: bash
59- # run: |
60- # docker run -t ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:latest bash -c " \
61- # pip install pytest nbmake; \
62- # find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600; "
62+ - name : Run tests
63+ if : github.event_name == 'pull_request'
64+ shell : bash
65+ run : |
66+ docker run -t ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:latest bash -c " \
67+ pip install pytest nbmake; \
68+ find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600; "
6369
6470 - name : Authenticate with GHCR
6571 if : github.event_name != 'pull_request'
@@ -81,13 +87,13 @@ jobs:
8187 tags : ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}
8288 outputs : type=image,push-by-digest=true,name-canonical=true,push=true
8389
84- # - name: Run tests
85- # if: github.event_name != 'pull_request'
86- # shell: bash
87- # run: |
88- # docker run -t ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}@${{ steps.build.outputs.digest }} bash -c " \
89- # pip install pytest nbmake; \
90- # find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600; "
90+ - name : Run tests
91+ if : github.event_name != 'pull_request'
92+ shell : bash
93+ run : |
94+ docker run -t ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}@${{ steps.build.outputs.digest }} bash -c " \
95+ pip install pytest nbmake; \
96+ find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600; "
9197
9298 - name : Export digest
9399 if : github.event_name != 'pull_request'
0 commit comments