Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
PR:
name: Unit test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Setup Python
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pytest
python3 -m pip install -r requirements.txt

- name: Unit test
run: |
cd models/TestModels
python3 -m pytest -v
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ lxml==5.1.0
pyparsing==3.1.1
plantuml==0.3.0
pydantic==2.6.3
pyyaml==6.0.3
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When running the GitHub Action above I got "module not found: yaml" errors.

Looking at requirements.txt I believe this is a valid error as there was no explicit pyyaml package defined. Likely this has not been an issue since all dev hosts STARS has been tested on has had pyyaml packages cached in the user's pip cache.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been fixed in 476b4dc

Loading