-
Notifications
You must be signed in to change notification settings - Fork 11
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
12 changed files
with
401 additions
and
15 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,31 @@ | ||
--- | ||
name: "System tests" | ||
|
||
on: [push] | ||
|
||
jobs: | ||
rcc: | ||
uses: ./.github/workflows/rcc.yaml | ||
|
||
test_scheduler: | ||
runs-on: windows-latest | ||
needs: | ||
- rcc | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
path: C:\ | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/[email protected] | ||
with: | ||
target: x86_64-pc-windows-gnu | ||
- run: cargo test --target=x86_64-pc-windows-gnu --test test_scheduler -- --nocapture | ||
working-directory: ${{ github.workspace }}/v2/robotmk/ | ||
env: | ||
TEST_DIR: C:\test_scheduler | ||
RCC_BINARY_PATH: C:\artifact\windows64\rcc.exe | ||
RUN_FOR: 480 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: C:\test_scheduler | ||
if-no-files-found: error |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
tmp/ |
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,8 @@ | ||
channels: | ||
- conda-forge | ||
|
||
dependencies: | ||
- python=3.11.6 | ||
- pip=23.3.1 | ||
- pip: | ||
- rpaframework==27.7.0 |
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,10 @@ | ||
def setup() -> None: | ||
print("Setting up...") | ||
|
||
|
||
def teardown() -> None: | ||
print("Tearing down...") | ||
|
||
|
||
def add(left: int, right: int) -> int: | ||
return left + right |
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,12 @@ | ||
tasks: | ||
execute: | ||
command: | ||
- python | ||
- --version | ||
|
||
condaConfigFile: conda.yaml | ||
artifactsDir: /tmp/outputdir # Leading slash is ignored, instead we get $(pwd)/tmp/outputdir/ | ||
PATH: | ||
- . | ||
PYTHONPATH: | ||
- . |
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,21 @@ | ||
*** Settings *** | ||
Documentation Test file for configuring RobotFramework | ||
Library ${CURDIR}/lib/add.py WITH NAME math | ||
|
||
Suite Setup math.setup | ||
Suite Teardown math.teardown | ||
|
||
|
||
*** Test Cases *** | ||
Addition One | ||
${result}= math.add ${20} ${5} | ||
Should Be Equal As Integers ${result} ${25} | ||
|
||
Addition Two | ||
${result}= math.add ${20} ${15} | ||
Should Be Equal As Integers ${result} ${35} | ||
|
||
Addition Three | ||
${result}= math.add ${20} ${25} | ||
Should Be Equal As Integers ${result} ${45} |
Oops, something went wrong.