diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2be0e12..4965ae4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,12 +13,18 @@ jobs: matrix: platform: - linux/amd64 - - linux/arm64 + #- linux/arm64 runs-on: ${{ matrix.platform == 'linux/amd64' && 'ubuntu-24.04' || matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' }} name: build ${{ matrix.platform }} outputs: tag: ${{ steps.envvars.outputs.tag }} steps: + - name: "node-cleanup" + run: | + sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL + sudo docker image prune --all --force + sudo docker builder prune -a + - name: checkout uses: actions/checkout@v5.0.0 @@ -53,13 +59,13 @@ jobs: tags: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }} outputs: type=docker,push-by-digest=true,name-canonical=true,push=true - #- name: Run tests - # if: github.event_name == 'pull_request' - # shell: bash - # run: | - # docker run -t ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:latest bash -c " \ - # pip install pytest nbmake; \ - # find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600; " + - name: Run tests + if: github.event_name == 'pull_request' + shell: bash + run: | + docker run -t ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:latest bash -c " \ + pip install pytest nbmake; \ + find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600; " - name: Authenticate with GHCR if: github.event_name != 'pull_request' @@ -81,13 +87,13 @@ jobs: tags: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }} outputs: type=image,push-by-digest=true,name-canonical=true,push=true - #- name: Run tests - # if: github.event_name != 'pull_request' - # shell: bash - # run: | - # docker run -t ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}@${{ steps.build.outputs.digest }} bash -c " \ - # pip install pytest nbmake; \ - # find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600; " + - name: Run tests + if: github.event_name != 'pull_request' + shell: bash + run: | + docker run -t ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}@${{ steps.build.outputs.digest }} bash -c " \ + pip install pytest nbmake; \ + find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600; " - name: Export digest if: github.event_name != 'pull_request' diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d62268b..9e20d3e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,7 +5,7 @@ concurrency: cancel-in-progress: true on: - push: { branches: [ "main" ] } + #push: { branches: [ "main" ] } pull_request: { branches: [ "main" ] } jobs: