Browse Source

Add MacOS to GitHub Actions tests (#72)

* Add MacOS to GitHub Actions tests

* test
Konstantin Ladutenko 10 months ago
parent
commit
dc20b92193
2 changed files with 16 additions and 2 deletions
  1. 13 1
      .github/workflows/cmake.yml
  2. 3 1
      tox.ini

+ 13 - 1
.github/workflows/cmake.yml

@@ -11,6 +11,18 @@ env:
   BUILD_TYPE: Release
 
 jobs:
+  macos:
+    runs-on: macOS-latest
+    steps:
+      - uses: actions/checkout@v3
+      - name: Install Python NumPy and Pybind11
+        # run: sudo apt install python3-numpy python3-all-dev python-numpy-dev python3-pybind11 python3-distutils && sudo pip3 install tox
+        run: pip3 install tox
+
+      - name: Python initial test
+        working-directory: ${{github.workspace}}
+        run: tox run
+
   build:
     # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
     # You can convert this to a matrix build if you need cross-platform coverage.
@@ -23,7 +35,7 @@ jobs:
       # without GTest and Boost
       - name: Install Python NumPy and Pybind11
         # run: sudo apt install python3-numpy python3-all-dev python-numpy-dev python3-pybind11 python3-distutils && sudo pip3 install tox
-        run: sudo apt install python3-numpy python3-all-dev python3-pybind11 python3-distutils && sudo pip3 install tox 
+        run: sudo apt install python3-numpy python3-all-dev python3-pybind11 python3-distutils && sudo pip3 install tox
 
       - name: Python initial test
         working-directory: ${{github.workspace}}

+ 3 - 1
tox.ini

@@ -4,7 +4,9 @@
 # and then run "tox" from this directory.
 
 [tox]
-envlist = py310
+envlist = 
+    py310
+    py311
 skip_missing_interpreters=true
 
 [testenv]