-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
62 additions
and
26 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 |
---|---|---|
@@ -1,5 +1,49 @@ | ||
# ot-analyze | ||
|
||
Github action to analyze Opentrons protocols | ||
|
||
To be able to analyze: | ||
python -m pip install 'opentrons-hardware @ git+https://github.com/Opentrons/opentrons@f6b79cb8d3eb3ecd4a1c794cfbdb25cee199526d#subdirectory=hardware' | ||
## Inputs | ||
|
||
## `BASE_DIRECTORY` | ||
|
||
**Required** The topmost directory to search for protocols to analyze. | ||
|
||
- default directory is protocols | ||
- The action will search this directory and all descendant directories for protocols to analyze. | ||
- Both Python and Protocol Library protocols will be analyzed. | ||
|
||
## Outputs | ||
|
||
## TODO | ||
|
||
## Custom Labware | ||
|
||
If your protocol uses custom labware, you must include it in a `custom_labware` directory in the same directory as the protocol. The action will automatically include it in the analysis. | ||
|
||
## Example usage | ||
|
||
<https://github.com/y3rsh/ot-analyze-test> | ||
|
||
Adding the following to your workflow will analyze your protocols and you may see the results in the Actions tab of your repository. | ||
|
||
```yml | ||
- name: Analyze | ||
uses: y3rsh/[email protected] | ||
``` | ||
Add the the following to your workflow to analyze your protocols and create a pull request with the results. | ||
```yml | ||
- name: Analyze | ||
uses: y3rsh/[email protected] | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
base: ${{ github.head_ref }} | ||
``` | ||
## Development | ||
- on Linux, have python 3.10, pip, and make installed | ||
- `make setup` to install dependencies | ||
- uses venv and requirements.txt |
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