Skip to content

Commit 100e119

Browse files
committed
Run linters before setting up OpenModelica in CI
This should make workflow runs with linter errors fail faster.
1 parent 8127daf commit 100e119

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/Test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- name: "Set up OpenModelica Compiler"
23-
uses: OpenModelica/[email protected]
24-
with:
25-
version: ${{ matrix.omc-version }}
26-
packages: |
27-
omc
28-
libraries: |
29-
'Modelica 4.0.0'
30-
- run: "omc --version"
31-
3222
- name: Set up Python ${{ matrix.python-version }}
3323
uses: actions/setup-python@v5
3424
with:
@@ -48,6 +38,16 @@ jobs:
4838
- name: Run pre-commit linters
4939
run: 'pre-commit run --all-files'
5040

41+
- name: "Set up OpenModelica Compiler"
42+
uses: OpenModelica/[email protected]
43+
with:
44+
version: ${{ matrix.omc-version }}
45+
packages: |
46+
omc
47+
libraries: |
48+
'Modelica 4.0.0'
49+
- run: "omc --version"
50+
5151
- name: Run pytest
5252
uses: pavelzw/pytest-action@v2
5353
with:

0 commit comments

Comments
 (0)