Skip to content

Commit

Permalink
Add test of python to linux
Browse files Browse the repository at this point in the history
  • Loading branch information
PucklaJ committed Feb 16, 2024
1 parent dc46812 commit d045954
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: [push]

env:
TEST_CASES: d3_buffer_seek,_get_nth_digit,_insert_sorted,d3_word_binary_search,Array,glob,string_builder,Array::New,binout_directory,path_move_up,path_join,path_is_abs,path_view,extra_string,card_parse_get_type,empty_card,profiling,sync,multi_file
CREATE_PYTHON_SYMLINK_LINUX: ln -s build/linux/x86_64/release/dynareadout.cpython-311-x86_64-linux-gnu.so ~/.local/lib/python3.11/site-packages/dynareadout.cpython-311-x86_64-linux-gnu.so

jobs:
linux-x86_64-static:
Expand Down Expand Up @@ -53,8 +54,13 @@ jobs:
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: 2.8.6
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: xmake f -yvD -p linux -a x86_64 -k static -m release --build_python=y
- run: xmake -wvD
- run: $CREATE_PYTHON_SYMLINK_LINUX
- run: printf 'import dynareadout as dro\ntry:\n\tb = dro.Binout("hello")\nexcept RuntimeError as e:\n\tprint(e)\n' | python


windows-x64-static:
Expand Down Expand Up @@ -148,12 +154,12 @@ jobs:
- run: xmake f -yvD -p macos -a x86_64 -k static -m release --build_test=y --profiling=y --thread_safe=n
- run: xmake -wvD
- run: xmake run -w . dynareadout_test --test-case=$TEST_CASES
macos-x86_64-python:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: 2.8.6
- run: xmake f -yvD -p macos -a x86_64 -k static -m release --build_python=y
- run: xmake -wvD
# macos-x86_64-python: xmake packages pybind11 and openssl are not supported on macos
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4
# - uses: xmake-io/github-action-setup-xmake@v1
# with:
# xmake-version: 2.8.6
# - run: xmake f -yvD -p macos -a x86_64 -k static -m release --build_python=y
# - run: xmake -wvD

0 comments on commit d045954

Please sign in to comment.