|
1 | 1 | name: lint |
2 | 2 | on: [pull_request] |
3 | 3 | 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 | + |
4 | 54 | code-ql: |
5 | 55 | strategy: |
6 | 56 | matrix: |
|
0 commit comments