Skip to content

Commit 4ce1da2

Browse files
authored
Merge pull request #11 from CCPBioSim/add-testing
Try adding testing in
2 parents 98301fa + 2b45f25 commit 4ce1da2

2 files changed

Lines changed: 22 additions & 16 deletions

File tree

.github/workflows/build.yaml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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'

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ concurrency:
55
cancel-in-progress: true
66

77
on:
8-
push: { branches: [ "main" ] }
8+
#push: { branches: [ "main" ] }
99
pull_request: { branches: [ "main" ] }
1010

1111
jobs:

0 commit comments

Comments
 (0)