forked from DiamondLightSource/mx-bluesky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request DiamondLightSource#172 from DiamondLightSource/mer…
…ge_in_hyperion Merge Hyperion into MX-Bluesky
- Loading branch information
Showing
329 changed files
with
28,152 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[run] | ||
omit = | ||
*/test_* | ||
**/conftest.py | ||
data_file = /tmp/hyperion.coverage | ||
|
||
[report] | ||
exclude_also = | ||
if TYPE_CHECKING: | ||
def __repr__ | ||
raise NotImplementedError | ||
@(abc\.)?abstractmethod | ||
|
||
[paths] | ||
# Tests are run from installed location, map back to the src directory | ||
source = | ||
src | ||
**/site-packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
Fixes #ISSUE | ||
|
||
Link to dodal PR (if required): #XXX | ||
(remember to update `setup.cfg` with the dodal commit tag if you need it for tests to pass!) | ||
|
||
### Instructions to reviewer on how to test: | ||
|
||
1. Do thing x | ||
2. Confirm thing y happens | ||
|
||
### Checks for reviewer | ||
|
||
- [ ] Would the PR title make sense to a user on a set of release notes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM ghcr.io/githubgphl/imginfo:main | ||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: "Verify nexus" | ||
description: "Verify nexus files against imginfo" | ||
inputs: | ||
filename: | ||
description: "nexus file to verify" | ||
required: true | ||
outputs: | ||
imginfo_stdout: | ||
description: "imginfo output" | ||
imginfo_stderr: | ||
description: "imginfo error output" | ||
imginfo_exit_code: | ||
description: "imginfo exit code" | ||
runs: | ||
using: "docker" | ||
image: "Dockerfile" | ||
args: | ||
- ${{ inputs.filename }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh -l | ||
echo "Contents of /github/workspace:" | ||
ls /github/workspace | ||
echo "current dir: $(pwd)" | ||
echo "Running imginfo on $1" | ||
/imginfo/imginfo $1 >> imginfo_out_file 2>> imginfo_err_file | ||
{ echo "imginfo_output<<EOF" | ||
cat imginfo_out_file | ||
echo EOF | ||
} >> "$GITHUB_OUTPUT" | ||
{ echo "imginfo_output<<EOF" | ||
cat imginfo_err_file | ||
echo EOF | ||
} >> "$GITHUB_OUTPUT" | ||
echo "imginfo_exit_code=$?" >> "$GITHUB_OUTPUT" | ||
echo "------------- IMGINFO STDOUT -------------" | ||
cat imginfo_out_file | ||
echo "------------- IMGINFO STDERR -------------" | ||
cat imginfo_err_file | ||
echo "------------------------------------------" | ||
if [ -s imginfo_err_file ]; then | ||
echo "ERRORS IN IMGINFO PROCESSING!" | ||
exit 1 | ||
fi | ||
echo "VALIDATED SUCCESSFULLY!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-vscode-remote.remote-containers", | ||
"ms-python.python", | ||
"tamasfe.even-better-toml", | ||
"redhat.vscode-yaml", | ||
"ryanluker.vscode-coverage-gutters", | ||
"charliermarsh.Ruff" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: 85% # the required coverage value | ||
threshold: 1% # the leniency in hitting the target | ||
|
||
ignore: | ||
- "**/conftest.py" |
Oops, something went wrong.