build(ci): run OCPP server build GHA on several OS
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 15 Oct 2024 13:58:24 +0000 (15:58 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 15 Oct 2024 13:58:24 +0000 (15:58 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml

index b704f6b9f86a2c26253d3a0652322c9275f6abec..7c8482aa12856a29ca2f8fb5019ecb62724903f6 100644 (file)
@@ -24,10 +24,10 @@ jobs:
   build-ocpp-server:
     strategy:
       matrix:
-        python:
-          - 3.12
-    name: Build OCPP mock server with Python ${{ matrix.python }}
-    runs-on: ubuntu-latest
+        os: [ubuntu-latest, windows-latest, macos-latest]
+        python: [3.12]
+    name: Build OCPP mock server with Python ${{ matrix.python }} on ${{ matrix.os }}
+    runs-on: ${{ matrix.os }}
     defaults:
       run:
         working-directory: tests/ocpp-server
@@ -43,6 +43,7 @@ jobs:
       - name: Install Dependencies
         run: poetry install --no-root
       - name: Lint
+        if: ${{ matrix.os == 'ubuntu-latest' && matrix.python == '3.12' }}
         run: poetry run task lint
   build-simulator:
     needs: [check-secrets]