-
Notifications
You must be signed in to change notification settings - Fork 93
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
4 changed files
with
135 additions
and
13 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
6 changes: 6 additions & 0 deletions
6
robocorp-code/tests/robocorp_code_tests/_resources/action_package/my_action.py
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,6 @@ | ||
from robocorp.actions import action | ||
|
||
|
||
@action | ||
def my_action() -> str: | ||
return "result" |
59 changes: 59 additions & 0 deletions
59
robocorp-code/tests/robocorp_code_tests/_resources/action_package/package.yaml
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,59 @@ | ||
# Required: Defines the name of the action package. | ||
name: My awesome cookie maker | ||
|
||
# Required: A description of what's in the action package. | ||
description: This does cookies | ||
|
||
# Required: The current version of this action package. | ||
version: 0.2.3 | ||
|
||
# Required: A link to where the documentation on the package lives. | ||
documentation: https://github.com/robocorp/actions-cookbook/blob/master/database-postgres/README.md | ||
|
||
# Required: | ||
# Defines the Python dependencies which should be used to launch the | ||
# actions. | ||
# The action server will automatically create a new python environment | ||
# based on this specification. | ||
# Note that at this point the only operator supported is `=`. | ||
dependencies: | ||
conda-forge: | ||
# This section is required: at least the python version must be specified. | ||
- python=3.10.12 | ||
- pip=23.2.1 | ||
- robocorp-truststore=0.8.0 | ||
|
||
pip: | ||
# This section is required: at least `robocorp-actions` must | ||
# be specified. | ||
# Note: robocorp-actions is special case because the action server | ||
# has coupling with the library. This means that if the version of | ||
# robocorp-actions is not pinned to a value the action server will | ||
# select a version based on a version that's known to work with the | ||
# current version of the action server. | ||
# If the version is pinned, then the action server will validate | ||
# if the given version can be used with it. | ||
- robocorp-actions | ||
- robocorp=1.4.3 | ||
- pytz=2023.3 | ||
|
||
local-wheels: | ||
# This section is optional. | ||
# It's possible to add references to a wheel/.zip relative | ||
# to the folder containing this package.yaml. | ||
- ./wheels/my-wheel.whl | ||
|
||
post-install: | ||
# This can be used to run custom commands which will still affect the | ||
# environment after it is created (the changes to the environment will | ||
# be cached). | ||
- python -m robocorp.browser install chrome --isolated | ||
|
||
packaging: | ||
# This section is optional. | ||
# By default all files and folders in this directory are packaged when uploaded. | ||
# Add exclusion rules below (expects glob format: https://docs.python.org/3/library/glob.html) | ||
exclude: | ||
- '*.temp' | ||
- '.vscode/**' | ||
|
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