Skip to content

Commit

Permalink
Merge branch 'master' into cscale-overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel authored Aug 31, 2023
2 parents ae99f7e + ce20845 commit ae544e2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/glmakie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ jobs:
- name: Save number of missing refimages to file
env:
N_MISSING: ${{ steps.referencetests.outputs.n_missing_refimages }}
COMMIT_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
run: |
mkdir -p ./n_missing
echo $N_MISSING > ./n_missing/n_missing_refimages
echo $COMMIT_SHA >> ./n_missing/n_missing_refimages
- name: Upload artifact with number of missing refimages
uses: actions/upload-artifact@v3
with:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/refimages_status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,21 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
let fs = require('fs');
let n_missing = Number(fs.readFileSync('./n_missing_refimages'));
let content = fs.readFileSync('./n_missing_refimages', { encoding: 'utf8' });
let lines = content.split('\n');
let n_missing = Number(lines[0]);
let commit_sha = lines[1];
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 }}",
sha: commit_sha,
state: n_missing === 0 ? 'success' : 'failure',
target_url: null,
description: n_missing + " missing refimages must be uploaded",
context: 'Reference Tests',
headers: {
'X-GitHub-Api-Version': '2022-11-28'
}
})
})
4 changes: 4 additions & 0 deletions docs/_css/makie.css
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,10 @@ button.copy-code {
align-items: center;
}

button.copy-code .far {
font-family: "Font Awesome 5 Free";
}

.copied-text {
font-size: 0.6em;
margin-right: 0.2em;
Expand Down

0 comments on commit ae544e2

Please sign in to comment.