-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.18 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: ci-checks
on:
push:
branches:
- main
- master
pull_request:
workflow_dispatch:
jobs:
Checks:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
# cache: 'pip'
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install pylavi
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
uv pip install pylavi
- name: Run pylavi Tests
shell: bash
run: |
echo running pylavi tests
# read the LabVIEW version from the first line of .lvversion file
LV_VERSION="$(head -n 1 .lvversion)"
echo "LV_VERSION: $LV_VERSION"
# convert to integer
LV_VERSION=` echo $LV_VERSION | sed 's/\..*//' `
echo "$LV_VERSION < LV_VERSION < $((LV_VERSION+1))"
source .venv/bin/activate
vi_validate \
--path source \
--path tests \
--gt "$LV_VERSION" --lt "$((LV_VERSION+1))" \
--skip *.vit \
--no-code \
--breakpoints
echo finished pylavi tests