Skip to content

Commit ce8afa8

Browse files
authored
Merge pull request #1782 from ISISComputingGroup/lint_more
Check opis on GHA
2 parents b014797 + ffee629 commit ce8afa8

File tree

13 files changed

+1651
-1228
lines changed

13 files changed

+1651
-1228
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/lint.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,56 @@
11
name: lint
22
on: [pull_request]
33
jobs:
4+
check-opi-format:
5+
runs-on: "windows-latest"
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: actions/setup-python@v5
9+
with:
10+
python-version: '3.11'
11+
- name: OPI checker dependencies
12+
run: python -m pip install -r base/uk.ac.stfc.isis.ibex.opis/requirements.txt
13+
- name: Run OPI checker
14+
run: python base/uk.ac.stfc.isis.ibex.opis/check_opi_format.py -strict -directory base/uk.ac.stfc.isis.ibex.opis
15+
- name: Validate OPIs
16+
run: python base/uk.ac.stfc.isis.ibex.opis/validate_opis.py
17+
18+
check-build:
19+
runs-on: "ubuntu-latest"
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.11'
25+
- name: Run check_build
26+
working-directory: ./build
27+
run: python check_build.py ../base
28+
29+
scriptgenerator-tests:
30+
runs-on: "ubuntu-latest"
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-python@v5
34+
with:
35+
python-version: '3.11'
36+
- name: Install dependencies
37+
run: python -m pip install -r ./base/uk.ac.stfc.isis.ibex.scriptgenerator/python_support/requirements.txt
38+
- name: Run scriptgenerator tests
39+
working-directory: ./base/uk.ac.stfc.isis.ibex.scriptgenerator/python_support
40+
run: python -m unittest discover
41+
42+
checkstyle:
43+
runs-on: "ubuntu-latest"
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-java@v4
47+
with:
48+
distribution: 'temurin'
49+
java-version: '21'
50+
- name: checkstyle
51+
working-directory: ./base/uk.ac.stfc.isis.ibex.client.tycho.parent
52+
run: mvn checkstyle:check
53+
454
code-ql:
555
strategy:
656
matrix:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
lxml
2+
pyhamcrest
3+
pywin32
4+
xmlrunner

0 commit comments

Comments
 (0)