-
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 #1 from AnyBody/add-test
test: Added github action CI tests
- Loading branch information
Showing
7 changed files
with
994 additions
and
3 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,2 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML linguist-generated=true |
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,55 @@ | ||
name: test | ||
|
||
on: | ||
pull_request: | ||
branches: [ main] | ||
schedule: | ||
# Runs at 00:00, only on Sunday | ||
- cron: '0 0 * * 0' | ||
workflow_dispatch: | ||
|
||
|
||
|
||
concurrency: | ||
group: ci-test-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
|
||
|
||
|
||
jobs: | ||
test1: | ||
if: ${{ !github.event.pull_request.head.repo.fork && github.repository == 'anybody/seated-human-mannequin-driver' }} | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: applicaiton | ||
|
||
- name: Checkout AMMR | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: AnyBody/ammr | ||
ref: master | ||
path: ammr | ||
|
||
- name: Link AMMR | ||
shell: cmd | ||
run: | | ||
echo #include "%GITHUB_WORKSPACE%/ammr/libdef.any" > libdef.any | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
manifest-path: applicaiton/pixi.toml | ||
activate-environment: true | ||
cache: true | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | ||
|
||
- name: Run test | ||
run: pytest applicaiton/Model | ||
env: | ||
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_TEST_SERVER_PASSWORD }} | ||
RLM_LICENSE: ${{ secrets.LICENSE_TEST_SERVER }} | ||
|
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 @@ | ||
# pixi environments | ||
.pixi | ||
*.egg-info |
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 @@ | ||
#include "../SeatedHuman.main.any" | ||
|
||
|
||
Main = { | ||
|
||
AnyOperation& RunTest = RunApplication; | ||
|
||
}; |
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
Oops, something went wrong.