forked from rcsb/mmtf-cpp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,21 @@ jobs: | |
matrix: | ||
platform: [windows-latest, macos-latest, ubuntu-latest] | ||
python-version: ["3.8", "3.11", "3.12", "pypy-3.8"] | ||
# include: | ||
# - os: windows-latest | ||
# cc: gcc | ||
# cxx: g++ | ||
# shell: 'msys2 {0}' | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: ${{ matrix.shell }} | ||
env: | ||
CC: ${{ matrix.cc }} | ||
CXX: ${{ matrix.cxx }} | ||
ARCH: ${{ matrix.arch }} | ||
CMAKE_ARGS: ${{ matrix.cmake_args }} | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -27,9 +42,16 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.16.x' | ||
|
||
- uses: seanmiddleditch/gha-setup-ninja@master | ||
|
||
- name: Build and install | ||
run: pip install --verbose . | ||
|
||
- name: Test | ||
run: python -m unittest src/python/tests/tests.py | ||
run: python src/python/tests/tests.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,9 +50,9 @@ jobs: | |
with: | ||
submodules: true | ||
|
||
- name: Set CMAKE_GENERATOR for Windows | ||
if: matrix.os == 'windows-latest' | ||
run: echo "CMAKE_GENERATOR=MinGW Makefiles" >> $GITHUB_ENV | ||
# - name: Set CMAKE_GENERATOR for Windows | ||
# if: matrix.os == 'windows-latest' | ||
# run: echo "CMAKE_GENERATOR=MinGW Makefiles" >> $GITHUB_ENV | ||
|
||
- uses: pypa/[email protected] | ||
env: | ||
|