Skip to content

Commit

Permalink
try moving status check back where it belongs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Aug 30, 2023
1 parent 3fcda51 commit 47df287
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/glmakie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,6 @@ jobs:
arch:
- x64
steps:
- name: Add reference images status
uses: actions/github-script@v6
if: matrix.version == '1'
env:
n_missing_refimages: '2'
with:
debug: true
script: |
await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', {
owner: context.repo.owner,
repo: context.repo.repo,
sha: "${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}",
state: process.env.n_missing_refimages === '0' ? 'success' : 'failure',
target_url: null,
description: process.env.n_missing_refimages + " missing refimages",
context: 'Reference Tests',
headers: {
'X-GitHub-Api-Version': '2022-11-28'
}
})
- name: Checkout
uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
Expand All @@ -83,6 +63,26 @@ jobs:
name: ReferenceImages_${{ matrix.os }}_${{ matrix.arch }}_${{ matrix.version }}
path: |
./GLMakie/test/recorded_reference_images/
- name: Add reference images status
uses: actions/github-script@v6
if: matrix.version == '1'
env:
n_missing_refimages: ${{ steps.referencetests.outputs.n_missing_refimages }}
with:
debug: false
script: |
await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', {
owner: context.repo.owner,
repo: context.repo.repo,
sha: "${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}",
state: process.env.n_missing_refimages === '0' ? 'success' : 'failure',
target_url: null,
description: process.env.n_missing_refimages + " missing refimages must be uploaded",
context: 'Reference Tests',
headers: {
'X-GitHub-Api-Version': '2022-11-28'
}
})
- name: Fail after artifacts if tests failed
if: ${{ env.TESTS_SUCCESSFUL != 'true' }}
run: exit 1
Expand Down

0 comments on commit 47df287

Please sign in to comment.