Skip to content

Commit 2ad3ac5

Browse files
Add GitHub actions (#7)
Add GitHub action to run on main and on PR to validate models and examples --------- Co-authored-by: Antonio Murgia <antonio.murgia@agilelab.it>
1 parent d320637 commit 2ad3ac5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pr.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Pull Request
2+
on:
3+
pull_request:
4+
branches-ignore: []
5+
push:
6+
branches:
7+
- main
8+
jobs:
9+
validate_model:
10+
name: python
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v5.4.0
16+
- name: Set up Python
17+
uses: actions/setup-python@v5.5.0
18+
with:
19+
python-version-file: "pyproject.toml"
20+
- name: Validate examples
21+
run: scripts/validate_model.sh

0 commit comments

Comments
 (0)