Skip to content

Commit e73c0ca

Browse files
authored
Activate testing
1 parent e7eb532 commit e73c0ca

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/build.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ jobs:
5353
tags: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}
5454
outputs: type=docker,push-by-digest=true,name-canonical=true,push=true
5555

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; "
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; "
6363
6464
- name: Authenticate with GHCR
6565
if: github.event_name != 'pull_request'
@@ -81,13 +81,13 @@ jobs:
8181
tags: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}
8282
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
8383

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; "
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; "
9191
9292
- name: Export digest
9393
if: github.event_name != 'pull_request'

0 commit comments

Comments
 (0)